Categorygithub.com/theopenlane/utils
module
0.4.2
Repository: https://github.com/theopenlane/utils.git
Documentation: pkg.go.dev

# README

utils

Utilities for working within the openlane ecosystem

# Packages

Package cache holds the library for interacting with redis.
No description provided by the author
Package contextx is a helper package for managing context values Most **request-scoped data** is a singleton per request That is, it doesn't make sense for a request to carry around multiple loggers, users, traces you want to carry the _same one_ with you from function call to function call the way we've handled this historically is a separate context key per type you want to carry in the struct but with generics, instead of having to make a new zero-sized type for every struct we can just make a single generic type and use it for everything which is what this helper package is intended to do.
Package dumper is a utility package for dumping http request contents.
Package envparse provides a way to parse environment variables from a struct.
Package gravatar generates random avatar images for users or organizations on sign up which they can override with their own avatars.
Package keygen provides functionality for generating API client IDs and secrets.
Package marionette is a golang based task manager with scheduling, backoff, future scheduling built in.
Package passwd provides fancy crypto shit for passwords.
Package rout is a semi-centralized method of handling and surfacing user facing errors.
Package slack holds slack integration clients and message definitions.
Package sliceutil contains utilities for working with slices in Go.
Package sqlite implements a connect hook around the sqlite3 driver so that the underlying connection can be fetched from the driver for more advanced operations such as backups.
Package testutils provides utilities for use in tests.
Package ulids is a lightweight wrapper around the github.com/oklog/ulid package that provides some common functionality (like checking if a ULID is null or is zero) as well as a process-global, cryptographically random, monotonic, and thread-safe ulid generation mechanism that can be used from external packages.