Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func InitService ¶
func InitService(providers providers.Providerser, options ...Option)
Types ¶
type AccessKey ¶
type Option ¶
type Option func(svc *service)
func WithLock ¶
func WithLock(lock ctxmu.MultiCtxRWLocker) Option
func WithSecretLength ¶
func WithStoreKeyPrefix ¶
func WithWaitLockTimout ¶
type Service ¶
type Service interface { Generate() (record *AccessKey, err error) Enable(key string) (err error) Disable(key string) (err error) Reset(key string) (err error) Delete(key string) (err error) Get(key string) (ack *AccessKey, err error) List() (list []*AccessKey, err error) }
func GetServiceInstance ¶
func GetServiceInstance() Service
func NewService ¶
func NewService(providers providers.Providerser, options ...Option) Service
Click to show internal directories.
Click to hide internal directories.