package
0.0.0-20231027131641-93b1e7503408
Repository: https://github.com/lightstar/golib.git
Documentation: pkg.go.dev
# Functions
MustNew function creates new redis id generator with provided options and panics on any error.
New function creates new redis id generator with provided options.
WithConfig option retrieves configuration from provided configuration service.
WithKeyPrefix option applies provided redis key prefix that stores next id.
WithRedisClient option applies provided instance of redis client.
# Constants
DefKeyPrefix is the default prefix of the redis key that stores next id.
# Interfaces
ConfigService interface used to obtain configuration from somewhere into some specific structure.
# Type aliases
Option function that is fed to New and MustNew.