exclusive

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL