common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ClientIPCtx       = "ClientIP"
	ProxyAddressesCtx = "ProxyAddresses"
	RemoteAddressCtx  = "RemoteAddress"
)

Variables

This section is empty.

Functions

func EnrichContext

func EnrichContext(next http.Handler) http.Handler

func GetAccessToken

func GetAccessToken(ctx context.Context) string

func GetClientIp

func GetClientIp(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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