Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
Extractor extracts an client id identifier from an HTTP request
var Default Extractor = HeaderExtractor{"X-Client-ID"}
Default extractor is using the request header X-Client-ID
type HeaderExtractor ¶
type HeaderExtractor []string
func (HeaderExtractor) ExtractClientID ¶
func (e HeaderExtractor) ExtractClientID(r *http.Request) (string, error)
Click to show internal directories.
Click to hide internal directories.