Documentation
¶
Index ¶
- Constants
- type AdditionalHealthStatusConfig
- type AuthConfig
- type Config
- type ConfigLoader
- type CustomResourceConfig
- type DefaultEnvConfigLoader
- func (decl DefaultEnvConfigLoader) GetAdditionalHealthStatusConfig() (AdditionalHealthStatusConfig, error)
- func (decl DefaultEnvConfigLoader) GetAuthConfig() (*AuthConfig, error)
- func (decl DefaultEnvConfigLoader) GetCustomResourceConfig() (*CustomResourceConfig, error)
- func (decl DefaultEnvConfigLoader) GetDisasterRecoveryPaths() (*DisasterRecoveryPath, error)
- func (decl DefaultEnvConfigLoader) GetHealthConfig() (*HealthConfig, error)
- func (decl DefaultEnvConfigLoader) GetServerConfig() (*ServerConfig, error)
- type DisasterRecoveryPath
- type DisasterRecoveryStatusPath
- type EnvConfigLoader
- type EnvProvider
- type HealthConfig
- type OsEnvProvider
- type ServerConfig
Constants ¶
View Source
const (
RequiredEnvTemplatedError = "the environment variable '%s' must not be empty"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalHealthStatusConfig ¶
type AdditionalHealthStatusConfig struct { Endpoint string HealthFunc func(request entity.HealthRequest) (entity.HealthResponse, error) FullHealthEnabled bool }
type AuthConfig ¶
type Config ¶
type Config struct { CustomResourceConfig HealthConfig DisasterRecoveryPath AuthConfig ServerConfig }
func NewConfig ¶
func NewConfig(configLoader ConfigLoader) (*Config, error)
type ConfigLoader ¶
type ConfigLoader interface { GetCustomResourceConfig() (*CustomResourceConfig, error) GetDisasterRecoveryPaths() (*DisasterRecoveryPath, error) GetHealthConfig() (*HealthConfig, error) GetAuthConfig() (*AuthConfig, error) GetServerConfig() (*ServerConfig, error) }
type CustomResourceConfig ¶
type DefaultEnvConfigLoader ¶
type DefaultEnvConfigLoader struct {
// contains filtered or unexported fields
}
func GetDefaultEnvConfigLoader ¶
func GetDefaultEnvConfigLoader() *DefaultEnvConfigLoader
func NewEnvConfigLoader ¶
func NewEnvConfigLoader(envProvider EnvProvider) *DefaultEnvConfigLoader
func (DefaultEnvConfigLoader) GetAdditionalHealthStatusConfig ¶
func (decl DefaultEnvConfigLoader) GetAdditionalHealthStatusConfig() (AdditionalHealthStatusConfig, error)
func (DefaultEnvConfigLoader) GetAuthConfig ¶
func (decl DefaultEnvConfigLoader) GetAuthConfig() (*AuthConfig, error)
func (DefaultEnvConfigLoader) GetCustomResourceConfig ¶
func (decl DefaultEnvConfigLoader) GetCustomResourceConfig() (*CustomResourceConfig, error)
func (DefaultEnvConfigLoader) GetDisasterRecoveryPaths ¶
func (decl DefaultEnvConfigLoader) GetDisasterRecoveryPaths() (*DisasterRecoveryPath, error)
func (DefaultEnvConfigLoader) GetHealthConfig ¶
func (decl DefaultEnvConfigLoader) GetHealthConfig() (*HealthConfig, error)
func (DefaultEnvConfigLoader) GetServerConfig ¶
func (decl DefaultEnvConfigLoader) GetServerConfig() (*ServerConfig, error)
type DisasterRecoveryPath ¶
type DisasterRecoveryPath struct { StatusPath DisasterRecoveryStatusPath ModePath []string NoWaitPath []string NoWaitAsString bool }
type EnvConfigLoader ¶
type EnvConfigLoader interface { ConfigLoader // contains filtered or unexported methods }
type EnvProvider ¶
type HealthConfig ¶
type HealthConfig struct { ActiveMainServices map[string][]string ActiveAdditionalServices map[string][]string StandbyMainServices map[string][]string StandbyAdditionalServices map[string][]string DisableMainServices map[string][]string DisableAdditionalServices map[string][]string AdditionalHealthStatusConfig AdditionalHealthStatusConfig DisasterRecoveryStatusPath DisasterRecoveryStatusPath }
type OsEnvProvider ¶
type OsEnvProvider struct{}
func (OsEnvProvider) GetEnv ¶
func (oec OsEnvProvider) GetEnv(key, fallback string) string
Click to show internal directories.
Click to hide internal directories.