Documentation ¶
Index ¶
- func GetDatabaseConfigFromConfigFile(cf *database.ConfigFile, runtime *server.ConfigFileRuntime) (res *database.Config, err error)
- func GetServerConfigFromConfigfile(dc *database.Config, cf *server.ServerConfigFile, version string) (cleanup func() error, res *server.ServerConfig, err error)
- func LoadDatabaseConfigFile(files ...[]byte) (*database.ConfigFile, error)
- func LoadServerConfigFile(files ...[]byte) (*server.ServerConfigFile, error)
- type ConfigLoader
- type ServerConfigFileOverride
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDatabaseConfigFromConfigFile ¶
func GetDatabaseConfigFromConfigFile(cf *database.ConfigFile, runtime *server.ConfigFileRuntime) (res *database.Config, err error)
func GetServerConfigFromConfigfile ¶
func GetServerConfigFromConfigfile(dc *database.Config, cf *server.ServerConfigFile, version string) (cleanup func() error, 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(version string, overrides ...ServerConfigFileOverride) (cleanup func() error, res *server.ServerConfig, err error)
LoadServerConfig loads the server configuration
type ServerConfigFileOverride ¶ added in v0.33.2
type ServerConfigFileOverride func(*server.ServerConfigFile)
Click to show internal directories.
Click to hide internal directories.