configloader

package
v0.0.0-...-ffe4551 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

Functions

func Load

func Load(c config.Config, fp string) (config.Config, error)

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.

Jump to

Keyboard shortcuts

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