static

package
v1.11.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Unset is a sentinel value.
	Unset = "unset"
	// ExternalInitiatorAccessKeyHeader is the header name for the access key
	// used by external initiators to authenticate
	ExternalInitiatorAccessKeyHeader = "X-Chainlink-EA-AccessKey"
	// ExternalInitiatorSecretHeader is the header name for the secret used by
	// external initiators to authenticate
	ExternalInitiatorSecretHeader = "X-Chainlink-EA-Secret"
)

Variables

View Source
var (
	// Version is the semantic version of the build or Unset.
	Version = Unset
	// Sha is the commit hash of the build or Unset.
	Sha = Unset
)

Version and Sha are set at compile time via build arguments.

View Source
var InitTime = time.Now()

InitTime holds the initial start timestamp.

Functions

func SetConsumerName added in v0.10.3

func SetConsumerName(uri *url.URL, name string, id *uuid.UUID)

SetConsumerName sets a nicely formatted application_name on the database uri

func Short added in v1.9.0

func Short() (shaPre string, ver string)

Short returns a 7-character sha prefix and version, or Unset if blank.

Types

This section is empty.

Jump to

Keyboard shortcuts

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