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 Database DatabaseConfig TritonServer TritonServerConfig }
AppConfig defines
var Config AppConfig
Config - Global variable to export
type DatabaseConfig ¶
type DatabaseConfig struct { Username string Password string Host string Port int Name string Version uint TimeZone string Pool struct { IdleConnections int MaxConnections int ConnLifeTime time.Duration } }
Configs related to database
type ServerConfig ¶
type ServerConfig struct { Port int HTTP struct { Enabled bool Port int } HTTPS struct { Enabled bool Port int Cert string Key string } CORSOrigins []string }
ServerConfig defines HTTP server configurations
type TritonServerConfig ¶
Click to show internal directories.
Click to hide internal directories.