Documentation ¶ Index ¶ Constants type App func New(redisClient redis.Client) App func (a App) Enabled() bool func (a App) Execute(ctx context.Context, name string, duration time.Duration, ...) error func (a App) 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 App ¶ type App struct { // contains filtered or unexported fields } func New ¶ func New(redisClient redis.Client) App func (App) Enabled ¶ func (a App) Enabled() bool func (App) Execute ¶ func (a App) Execute(ctx context.Context, name string, duration time.Duration, action func(context.Context) error) error func (App) Try ¶ func (a App) 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.