Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingKey for limiter. ErrMissingKey = errors.New("missing key") )
Module for fx.
Functions ¶
func RegisterKey ¶ added in v1.204.0
RegisterKey with name and fn. Last register wins.
Types ¶
type Config ¶ added in v1.166.0
type Config struct { Kind string `yaml:"kind,omitempty" json:"kind,omitempty" toml:"kind,omitempty"` Interval string `yaml:"interval,omitempty" json:"interval,omitempty" toml:"interval,omitempty"` Tokens uint64 `yaml:"tokens,omitempty" json:"tokens,omitempty" toml:"tokens,omitempty"` }
Config for limiter.
Click to show internal directories.
Click to hide internal directories.