limiter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnlimited

func NewUnlimited() *unlimited

Types

type Repository

type Repository interface {
	Get(ctx context.Context, oidcIssuer, oidcSubject, id string) (counter int, expiredAt time.Time, err *types.CommonError)
	Increment(ctx context.Context, oidcIssuer, oidcSubject, id string, expiredAt time.Time) (err *types.CommonError)
	Expire(ctx context.Context, oidcIssuer, oidcSubject, id string) (err *types.CommonError)
}

Implementation needs to be aware of distributed system nature

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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