Documentation ¶
Index ¶
- func GetBackgroundWorkerConfigFromConfigFile(wc *worker.BackgroundConfigFile, dbConfig *database.Config, ...) (res *worker.BackgroundConfig, err error)
- func GetCLIConfigFromConfigFile(cc *cli.ConfigFile, sharedConfig *shared.Config) (res *cli.Config, err error)
- func GetDatabaseConfigFromConfigFile(dc *database.ConfigFile) (res *database.Config, err error)
- func GetRunnerConfigFromConfigFile(rc *runner.ConfigFile, sharedConfig *shared.Config) (res *runner.Config, err error)
- func GetRunnerWorkerConfigFromConfigFile(wc *worker.RunnerConfigFile, sharedConfig *shared.Config) (res *worker.RunnerConfig, err error)
- func GetServerConfigFromConfigFile(version string, sc *server.ConfigFile, dbConfig *database.Config, ...) (res *server.Config, err error)
- func GetSharedConfigFromConfigFile(sharedC *shared.ConfigFile) (res *shared.Config, err error)
- func GetTemporalConfigFromConfigFile(tc *temporalconfig.TemporalConfigFile, dbConfig *database.Config) (res *temporalconfig.Config, err error)
- func LoadBackgroundWorkerConfigFile(files ...[]byte) (*worker.BackgroundConfigFile, error)
- func LoadCLIConfigFile(files ...[]byte) (*cli.ConfigFile, *viper.Viper, error)
- func LoadDatabaseConfigFile(files ...[]byte) (*database.ConfigFile, error)
- func LoadRunnerConfigFile(files ...[]byte) (*runner.ConfigFile, error)
- func LoadRunnerWorkerConfigFile(files ...[]byte) (*worker.RunnerConfigFile, error)
- func LoadServerConfigFile(files ...[]byte) (*server.ConfigFile, error)
- func LoadSharedConfigFile(files ...[]byte) (*shared.ConfigFile, error)
- func LoadTemporalConfigFile(files ...[]byte) (*temporalconfig.TemporalConfigFile, error)
- type ConfigLoader
- func (c *ConfigLoader) LoadBackgroundWorkerConfig() (res *worker.BackgroundConfig, err error)
- func (c *ConfigLoader) LoadCLIConfig() (res *cli.Config, v *viper.Viper, err error)
- func (c *ConfigLoader) LoadDatabaseConfig() (res *database.Config, err error)
- func (c *ConfigLoader) LoadRunnerConfig() (res *runner.Config, err error)
- func (c *ConfigLoader) LoadRunnerWorkerConfig() (res *worker.RunnerConfig, err error)
- func (c *ConfigLoader) LoadServerConfig() (res *server.Config, err error)
- func (c *ConfigLoader) LoadSharedConfig() (res *shared.Config, err error)
- func (c *ConfigLoader) LoadTemporalConfig() (res *temporalconfig.Config, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBackgroundWorkerConfigFromConfigFile ¶
func GetBackgroundWorkerConfigFromConfigFile( wc *worker.BackgroundConfigFile, dbConfig *database.Config, sharedConfig *shared.Config, ) (res *worker.BackgroundConfig, err error)
func GetDatabaseConfigFromConfigFile ¶
func GetDatabaseConfigFromConfigFile(dc *database.ConfigFile) (res *database.Config, err error)
func GetRunnerWorkerConfigFromConfigFile ¶
func GetRunnerWorkerConfigFromConfigFile( wc *worker.RunnerConfigFile, sharedConfig *shared.Config, ) (res *worker.RunnerConfig, err error)
func GetSharedConfigFromConfigFile ¶
func GetSharedConfigFromConfigFile(sharedC *shared.ConfigFile) (res *shared.Config, err error)
func GetTemporalConfigFromConfigFile ¶
func GetTemporalConfigFromConfigFile( tc *temporalconfig.TemporalConfigFile, dbConfig *database.Config, ) (res *temporalconfig.Config, err error)
func LoadBackgroundWorkerConfigFile ¶
func LoadBackgroundWorkerConfigFile(files ...[]byte) (*worker.BackgroundConfigFile, error)
LoadBackgroundWorkerConfigFile loads the background worker config file via viper
func LoadCLIConfigFile ¶
LoadCLIConfigFile loads the CLI config file via viper
func LoadDatabaseConfigFile ¶
func LoadDatabaseConfigFile(files ...[]byte) (*database.ConfigFile, error)
LoadDatabaseConfigFile loads the database config file via viper
func LoadRunnerConfigFile ¶
func LoadRunnerConfigFile(files ...[]byte) (*runner.ConfigFile, error)
LoadRunnerConfigFile loads the runner config file via viper
func LoadRunnerWorkerConfigFile ¶
func LoadRunnerWorkerConfigFile(files ...[]byte) (*worker.RunnerConfigFile, error)
LoadRunnerWorkerConfigFile loads the runner worker config file via viper
func LoadServerConfigFile ¶
func LoadServerConfigFile(files ...[]byte) (*server.ConfigFile, error)
LoadServerConfigFile loads the server config file via viper
func LoadSharedConfigFile ¶
func LoadSharedConfigFile(files ...[]byte) (*shared.ConfigFile, error)
LoadSharedConfigFile loads the shared config file via viper
func LoadTemporalConfigFile ¶
func LoadTemporalConfigFile(files ...[]byte) (*temporalconfig.TemporalConfigFile, error)
LoadTemporalConfigFile loads the temporal config file via viper
Types ¶
type ConfigLoader ¶
type ConfigLoader struct {
// contains filtered or unexported fields
}
func NewConfigLoader ¶
func NewConfigLoader(version, directory string) *ConfigLoader
func (*ConfigLoader) LoadBackgroundWorkerConfig ¶
func (c *ConfigLoader) LoadBackgroundWorkerConfig() (res *worker.BackgroundConfig, err error)
LoadBackgroundWorkerConfig loads the background worker configuration
func (*ConfigLoader) LoadCLIConfig ¶
LoadRunnerConfig loads the cli configuration
func (*ConfigLoader) LoadDatabaseConfig ¶
func (c *ConfigLoader) LoadDatabaseConfig() (res *database.Config, err error)
LoadDatabaseConfig loads the database configuration
func (*ConfigLoader) LoadRunnerConfig ¶
func (c *ConfigLoader) LoadRunnerConfig() (res *runner.Config, err error)
LoadRunnerConfig loads the runner configuration
func (*ConfigLoader) LoadRunnerWorkerConfig ¶
func (c *ConfigLoader) LoadRunnerWorkerConfig() (res *worker.RunnerConfig, err error)
LoadRunnerWorkerConfig loads the runner worker configuration
func (*ConfigLoader) LoadServerConfig ¶
func (c *ConfigLoader) LoadServerConfig() (res *server.Config, err error)
LoadServerConfig loads the server configuration
func (*ConfigLoader) LoadSharedConfig ¶
func (c *ConfigLoader) LoadSharedConfig() (res *shared.Config, err error)
LoadSharedConfig loads the shared configuration
func (*ConfigLoader) LoadTemporalConfig ¶
func (c *ConfigLoader) LoadTemporalConfig() (res *temporalconfig.Config, err error)
LoadTemporalConfig loads the temporal server configuration