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"` Database DatabaseConfig `koanf:"database"` Temporal TemporalConfig `koanf:"temporal"` Cache CacheConfig `koanf:"cache"` MgmtBackend MgmtBackendConfig `koanf:"mgmtbackend"` ConnectorBackend ConnectorBackendConfig `koanf:"connectorbackend"` ModelBackend ModelBackendConfig `koanf:"modelbackend"` UsageServer UsageServerConfig `koanf:"usageserver"` }
AppConfig defines
var Config AppConfig
Config - Global variable to export
type CacheConfig ¶
type CacheConfig struct {
Redis struct {
RedisOptions redis.Options `koanf:"redisoptions"`
}
}
CacheConfig related to Redis
type ConnectorBackendConfig ¶
type ConnectorBackendConfig struct { Host string `koanf:"host"` Port int `koanf:"port"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
ConnectorBackendConfig related to connector-backend
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"` AdminPort int `koanf:"adminport"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
MgmtBackendConfig related to mgmt-backend
type ModelBackendConfig ¶
type ModelBackendConfig struct { Host string `koanf:"host"` Port int `koanf:"port"` HTTPS struct { Cert string `koanf:"cert"` Key string `koanf:"key"` } }
ModelBackendConfig related to model-backend
type ServerConfig ¶
type ServerConfig struct { Port int `koanf:"port"` 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"` MaxDataSize int `koanf:"maxdatasize"` }
ServerConfig defines HTTP server configurations
type TemporalConfig ¶
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-server
Click to show internal directories.
Click to hide internal directories.