package
Version:
v0.0.23
Opens a new window with list of versions in this module.
Published: Oct 3, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewLoggerConfig creates a new LoggerConfig
type Config struct {
FileStoreRoot string `mapstructure:"file_store_root"`
DefaultDomain string `mapstructure:"default_domain"`
Logging logger.Config `mapstructure:"logging"`
CA []string `mapstructure:"ca"`
Servers map[string]ServerCredentials `mapstructure:"servers"`
}
Config holds the configuration for the app.
NewConfig creates the configuration by reading env & files
Overrider is a func that mutates configuration
Path is a string that points to a config file
type ServerCredentials struct {
Type string `mapstructure:"type"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.