Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateConfig ¶
ValidateConfig is for custom validation rules for the configuration
Types ¶
type AppConfig ¶
type AppConfig struct { Server ServerConfig `koanf:"server"` Worker WorkerConfig `koanf:"worker"` Database DatabaseConfig `koanf:"database"` Temporal TemporalConfig `koanf:"temporal"` PipelineBackend PipelineBackendConfig `koanf:"pipelinebackend"` MgmtBackend MgmtBackendConfig `koanf:"mgmtbackend"` Controller ControllerConfig `koanf:"controller"` UsageServer UsageServerConfig `koanf:"usageserver"` }
AppConfig defines
var Config AppConfig
Config - Global variable to export
type ControllerConfig ¶
type ControllerConfig struct { Host string `koanf:"host"` PrivatePort int `koanf:"privateport"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
ControllerConfig related to controller
type DatabaseConfig ¶
type DatabaseConfig struct { Username string `koanf:"username"` Password string `koanf:"password"` Host string `koanf:"host"` Port int `koanf:"port"` Name string `koanf:"name"` Version uint `koanf:"version"` TimeZone string `koanf:"timezone"` Pool struct { IdleConnections int `koanf:"idleconnections"` MaxConnections int `koanf:"maxconnections"` ConnLifeTime time.Duration `koanf:"connlifetime"` } }
DatabaseConfig related to database
type MgmtBackendConfig ¶
type MgmtBackendConfig struct { Host string `koanf:"host"` PrivatePort int `koanf:"privateport"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
MgmtBackendConfig related to mgmt-backend
type PipelineBackendConfig ¶
type PipelineBackendConfig struct { Host string `koanf:"host"` PublicPort int `koanf:"publicport"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
PipelineBackendConfig related to pipeline-backend
type ServerConfig ¶
type ServerConfig struct { PrivatePort int `koanf:"privateport"` PublicPort int `koanf:"publicport"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } CORSOrigins []string `koanf:"corsorigins"` Edition string `koanf:"edition"` DisableUsage bool `koanf:"disableusage"` Debug bool `koanf:"debug"` }
ServerConfig defines HTTP server configurations
type TemporalConfig ¶
type TemporalConfig struct { HostPort string `koanf:"hostport"` Namespace string `koanf:"namespace"` Ca string `koanf:"ca"` Cert string `koanf:"cert"` Key string `koanf:"key"` ServerName string `koanf:"servername"` }
TemporalConfig related to Temporal
type UsageServerConfig ¶
type UsageServerConfig struct { TLSEnabled bool `koanf:"tlsenabled"` Host string `koanf:"host"` Port int `koanf:"port"` }
UsageServerConfig related to usage-backend
Click to show internal directories.
Click to hide internal directories.