Documentation
¶
Overview ¶
Package identifier defines interfaces for resolving request identifiers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentifierResolver ¶
type IdentifierResolver interface {
Resolve(r *http.Request) (model.Identifier, error)
}
IdentifierResolver extracts the identifier used to select a rate-limiting policy from an incoming HTTP request.
Applications can implement this interface to rate-limit requests by API key, user ID, IP address, tenant ID, or any other application-defined identifier.
Click to show internal directories.
Click to hide internal directories.