Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { AppName string `envconfig:"APP_NAME" default:"go-papyrus"` AppEnv string `envconfig:"ENVIRONMENT" required:"true"` Port int `envconfig:"API_PORT" default:"80"` Version string `envconfig:"VERSION"` LogChannel string `envconfig:"LOG_CHANNEL" default:"go-papyrus-api"` LogLevel string `envconfig:"LOG_LEVEL" default:"error"` }
APIConfig API InternalConfig - InternalConfigSource specifies the source for internal configs - file or datastore nolint: lll
func (*APIConfig) LoadConfigFromEnv ¶
LoadConfigFromEnv Loads configuration from OS.Env
Click to show internal directories.
Click to hide internal directories.