loader

package
v0.52.10 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 42 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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