transport

package
v0.0.0-...-3361740 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// UserID define the key to setup the ID of the hostname
	UserID = "user.id"

	// UserIP define the key to setup the user IP address into the context header
	UserIP = "user.ip"

	// UserRoles define roles associated to the user
	UserRoles = "user.roles"

	// Username is the common user name
	Username = "user.name"

	// UserHostname define the key to setup the user hostname into the context header
	UserHostname = "user.hostname"

	// Authorization define the key into the context header
	Authorization = "authorization"
)

Functions

func ExtractMetadata

func ExtractMetadata(ctx context.Context, key string) (string, error)

func GetFromMetadata

func GetFromMetadata(md metadata.MD, key string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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