extractor

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 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