static

package
v2.12.0-beta3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 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

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

SetConsumerName sets a nicely formatted application_name on the database uri

func Short

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