version

package
v0.0.0-...-564ba19 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UAStringKey = "upstream-user-agent"

UAStringKey is used as key type for user-agent string in net/context struct

Variables

View Source
var (
	Version   = "unknown-version"
	GitCommit = "unknown-commit"
	BuildTime = "unknown-buildtime"
)

Functions

func MaliceUserAgent

func MaliceUserAgent(ctx context.Context) string

MaliceUserAgent is the User-Agent the Malice client uses to identify itself. In accordance with RFC 7231 (5.5.3) is of the form:

[malice client's UA] UpstreamClient([upstream client's UA])

Types

This section is empty.

Jump to

Keyboard shortcuts

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