env

package
v0.0.0-...-498fec9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint   string `env:"ENDPOINT" envDefault:"http://10.64.16.186"`
	AppPort    int    `env:"APP_PORT" envDefault:"80"`
	Dataset    string `env:"DATASET" envDefault:"196_autoMpg_MIN_METADATA_dataset_TRAIN"`
	RetryCount int    `env:"RETRY_COUNT" envDefault:"60"`
}

Config represents the application configuration state loaded from env vars.

func LoadConfig

func LoadConfig() (Config, error)

LoadConfig loads the config from the environment if necessary and returns a copy.

Jump to

Keyboard shortcuts

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