Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCastingIntoSWLimiter = errors.New("error type casting sliding window limiter")
Functions ¶
Types ¶
type Getter ¶
type Getter interface { Name() string GetOrCreate(ctx context.Context, key string, limit Limit) (Limiter, error) Close() }
func NewSWRegistry ¶
type LimiterConfig ¶
type LimiterConfig struct { Default Limit `dynamodbav:"default"` Overrides map[string]Limit `dynamodbav:"overrides"` }
func (*LimiterConfig) Get ¶
func (cfg *LimiterConfig) Get(key string) Limit
func (*LimiterConfig) Update ¶
func (cfg *LimiterConfig) Update() error
Update is called everytime the store updates the config
Click to show internal directories.
Click to hide internal directories.