Documentation ¶
Index ¶
- func GetDatabaseConfigFromConfigFile(cf *database.ConfigFile) (res *database.Config, err error)
- func GetServerConfigFromConfigfile(dc *database.Config, cf *server.ServerConfigFile) (res *server.ServerConfig, err error)
- func LoadDatabaseConfigFile(files ...[]byte) (*database.ConfigFile, error)
- func LoadServerConfigFile(files ...[]byte) (*server.ServerConfigFile, error)
- type ConfigLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabaseConfigFromConfigFile ¶
func GetDatabaseConfigFromConfigFile(cf *database.ConfigFile) (res *database.Config, err error)
func GetServerConfigFromConfigfile ¶
func GetServerConfigFromConfigfile(dc *database.Config, cf *server.ServerConfigFile) (res *server.ServerConfig, err error)
func LoadDatabaseConfigFile ¶
func LoadDatabaseConfigFile(files ...[]byte) (*database.ConfigFile, error)
LoadDatabaseConfigFile loads the database config file via viper
func LoadServerConfigFile ¶
func LoadServerConfigFile(files ...[]byte) (*server.ServerConfigFile, error)
LoadServerConfigFile loads the server config file via viper
Types ¶
type ConfigLoader ¶
type ConfigLoader struct {
// contains filtered or unexported fields
}
func NewConfigLoader ¶
func NewConfigLoader(directory string) *ConfigLoader
func (*ConfigLoader) LoadDatabaseConfig ¶
func (c *ConfigLoader) LoadDatabaseConfig() (res *database.Config, err error)
LoadDatabaseConfig loads the database configuration
func (*ConfigLoader) LoadServerConfig ¶
func (c *ConfigLoader) LoadServerConfig() (res *server.ServerConfig, err error)
LoadServerConfig loads the server configuration
Click to show internal directories.
Click to hide internal directories.