useragent

package
v1.5.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MPL-2.0 Imports: 4 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetHeaders added in v1.5.0

func SetHeaders(client HeaderSetter)

SetHeaders configures the User-Agent http.Header for the client.

func String

func String() string

String returns the consistent user-agent string for Nomad.

Types

type HeaderSetter added in v1.5.0

type HeaderSetter interface {
	SetHeaders(http.Header)
}

HeaderSetter is anything that implements SetHeaders(http.Header).

Jump to

Keyboard shortcuts

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