extractor

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	ExtractClientID(*http.Request) (string, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL