daemon

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommitHash = os.Getenv(daemonCommitHashEnv)

CommitHash is the hash of the idv dataset commit to use

View Source
var Dataset = os.Getenv(daemonDatasetEnv)

Dataset is the idv dataset to use

View Source
var URL = os.Getenv(daemonURLEnv)

URL is the URL at which to reach the idv daemon

Functions

func VerifyDaemonEnvs added in v0.4.0

func VerifyDaemonEnvs() error

VerifyDaemonEnvs checks whether each of the environment variables returned a non-empty value

Types

type Config

type Config struct {
	DaemonURL  string
	Dataset    string
	CommitHash string
}

Config is a structure holding necessary info for interaction with an idv daemon

func NewDaemonConfig

func NewDaemonConfig(daemonURL, dataset, commitHash string) Config

NewDaemonConfig initiates a new daemon configuration with all its necessary information

func NewDaemonConfigFromEnv

func NewDaemonConfigFromEnv() Config

NewDaemonConfigFromEnv uses environment variables to initialize a new DaemonConfig

Jump to

Keyboard shortcuts

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