Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvType = "TODO_ENV_TYPE" DBHost = "TODO_DB_HOST" DBPort = "TODO_DB_PORT" DBUser = "TODO_DB_USER" DBPass = "TODO_DB_PASS" DBDatabase = "TODO_DB_DATABASE" DBSSLMode = "TODO_DB_SSLMODE" HTTPServerHost = "TODO_HTTP_SERVER_HOST" HTTPServerPort = "TODO_HTTP_SERVER_PORT" GRPCServerHost = "TODO_GRPC_SERVER_HOST" GRPCServerPort = "TODO_GRPC_SERVER_PORT" NATSHost = "TODO_NATS_HOST" NATSPort = "TODO_NATS_PORT" WiretapEnable = "TODO_WIRETAP_ENABLE" WiretapHost = "TODO_WIRETAP_HOST" WiretapPort = "TODO_WIRETAP_PORT" )
Variables ¶
View Source
var EnvironmentVariableKeys = []string{ EnvType, DBHost, DBPort, DBUser, DBPass, DBDatabase, DBSSLMode, HTTPServerHost, HTTPServerPort, GRPCServerHost, GRPCServerPort, NATSHost, NATSPort, WiretapEnable, WiretapHost, WiretapPort, }
Functions ¶
func Load ¶
Load at rest configuration into memory First load configuration files into the local configuration store. Second, load environmental variables to the local configuration store, overwriting pre-existing values, if any. Lastly, set configuration values with cli flags, overwriting pre-existing values, if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.