config

package
v0.0.0-...-e7e71ae Latest Latest
Warning

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

Go to latest
Published: May 13, 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 {
	IdentityAPIURL            string   `envconfig:"IDENTITY_API_URL"`
	CodeListAPIURL            string   `envconfig:"CODELIST_API_URL"`
	DatasetAPIURL             string   `envconfig:"DATASET_API_URL"`
	DownloadServiceURL        string   `envconfig:"DOWNLOAD_SERVICE_URL"`
	FilterAPIURL              string   `envconfig:"FILTER_API_URL"`
	HierarchyAPIURL           string   `envconfig:"HIERARCHY_API_URL"`
	ImportAPIURL              string   `envconfig:"IMPORT_API_URL"`
	RecipeAPIURL              string   `envconfig:"RECIPE_API_URL"`
	SearchAPIURL              string   `envconfig:"SEARCH_API_URL"`
	ElasticSearchAPIURL       string   `envconfig:"ELASTIC_SEARCH_URL"`
	MongoAddr                 string   `envconfig:"MONGODB_BIND_ADDR"`
	MongoDB                   string   `envconfig:"MONGODB_DATABASE"`
	MongoFiltersDB            string   `envconfig:"MONGODB_FILTERS_DATABASE"`
	MongoImportsDB            string   `envconfig:"MONGODB_IMPORTS_DATABASE"`
	Neo4jAddr                 string   `envconfig:"NEO4J_BIND_ADDR"`
	Brokers                   []string `envconfig:"KAFKA_ADDR"`
	ObservationsInsertedTopic string   `envconfig:"IMPORT_OBSERVATIONS_INSERTED_TOPIC"`
	ObservationConsumerGroup  string   `envconfig:"OBSERVATION_CONSUMER_GROUP"`
	ObservationConsumerTopic  string   `envconfig:"OBSERVATION_CONSUMER_TOPIC"`
	EncryptionDisabled        bool     `envconfig:"ENCRYPTION_DISABLED"`
	VaultAddress              string   `envconfig:"VAULT_ADDR"`
	VaultToken                string   `envconfig:"VAULT_TOKEN"`
	VaultPath                 string   `envconfig:"VAULT_PATH"`
}

Config values for the application.

func Get

func Get() (*Config, error)

Get the configuration values from the environment or provide the defaults.

Jump to

Keyboard shortcuts

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