Documentation ¶ Index ¶ Constants type Service func New(redisClient redis.Client) Service func (s Service) Enabled() bool func (s Service) Execute(ctx context.Context, name string, duration time.Duration, ...) error func (s Service) Try(ctx context.Context, name string, duration time.Duration, ...) (bool, error) Constants ¶ View Source const Duration = time.Second * 10 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Service ¶ added in v0.26.0 type Service struct { // contains filtered or unexported fields } func New ¶ func New(redisClient redis.Client) Service func (Service) Enabled ¶ added in v0.26.0 func (s Service) Enabled() bool func (Service) Execute ¶ added in v0.26.0 func (s Service) Execute(ctx context.Context, name string, duration time.Duration, action func(context.Context) error) error func (Service) Try ¶ added in v0.26.0 func (s Service) Try(ctx context.Context, name string, duration time.Duration, action func(context.Context) error) (bool, error) Source Files ¶ View all Source files exclusive.go Click to show internal directories. Click to hide internal directories.