limiter

package
v0.0.0-...-6d36bb5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	AwaitMutation(ctx context.Context) func()
	Test(ctx context.Context, bucket string, limit int64, dur time.Duration, opt TestOptions) bool

	ScriptOk(ctx context.Context) bool
	LoadScript(ctx context.Context) error
	GetScript() string
}

func New

func New(ctx context.Context, rdis redis.Instance) (Instance, error)

type TestOptions

type TestOptions struct {
	Incr uint32
}

Jump to

Keyboard shortcuts

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