version

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	KinVersionHeader        = "kin-version"
	DesiredKinVersionHeader = "desired-kin-version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KinVersion

type KinVersion uint16
const (
	KinVersionUnknown KinVersion = iota
	KinVersionReserved
	KinVersion2
	KinVersion3
	KinVersion4
)

func GetCtxDesiredVersion

func GetCtxDesiredVersion(ctx context.Context) (v KinVersion, err error)

GetCtxDesiredVersion determines which version of Kin the requestor whiches to have enforced.

func GetCtxKinVersion

func GetCtxKinVersion(ctx context.Context) (v KinVersion, err error)

GetCtxKinVersion determines which version of Kin to use based on the headers in the provided context.

func (KinVersion) String added in v0.71.0

func (k KinVersion) String() string

Jump to

Keyboard shortcuts

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