Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultPrefix is the default prefix to use for the key in the store.
DefaultPrefix = "limiter"
)
Variables ¶
View Source
var ( // ErrInvalidPolicy is used when an invalid policy was provided ErrInvalidPolicy = errors.New(http.StatusBadRequest, "policy is not supported") // ErrInvalidStorage is used when an invalid storage was provided ErrInvalidStorage = errors.New(http.StatusBadRequest, "the storage that you are using is not supported for this feature") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.