config

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 1 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 {
	BindAddr           string `envconfig:"BIND_ADDR"`
	RouterURL          string `envconfig:"ROUTER_URL"`
	ZebedeeURL         string `envconfig:"ZEBEDEE_URL"`
	RecipeAPIURL       string `envconfig:"RECIPE_API_URL"`
	ImportAPIURL       string `envconfig:"IMPORT_API_URL"`
	DatasetAPIURL      string `envconfig:"DATASET_API_URL"`
	UploadBucketName   string `envconfig:"UPLOAD_BUCKET_NAME"`
	EncryptionDisabled bool   `envconfig:"ENCRYPTION_DISABLED"`
	VaultAddr          string `envconfig:"VAULT_ADDR"`
	VaultToken         string `envconfig:"VAULT_TOKEN"                json:"-"`
	VaultPath          string `envconfig:"VAULT_PATH"`
	TableRendererURL   string `envconfig:"TABLE_RENDERER_URL"`
	SharedConfig       SharedConfig
}

Config represents the configuration required for florence

func Get

func Get() (*Config, error)

Get retrieves the config from the environment for florence

type SharedConfig

type SharedConfig struct {
	EnableDatasetImport bool `envconfig:"ENABLE_DATASET_IMPORT" json:"enableDatasetImport"`
}

SharedConfig represents the configuration made available to the client-side application from the server

Jump to

Keyboard shortcuts

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