Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶
type BackendConfig struct { ClientAuthCertificate tls.Certificate MaxConns int64 `yaml:"max_conns"` TLSPem `yaml:",inline"` // embed to get cert_chain and private_key for client authentication }
type BrokerConfig ¶
type Config ¶
type Config struct { Gorouters []GorouterConfig `yaml:"gorouters,omitempty"` Logging Log `yaml:"logging,omitempty"` Port uint16 `yaml:"port,omitempty"` EnableSSL bool `yaml:"enable_ssl,omitempty"` SSLCertificate tls.Certificate `yaml:"-"` TLSPEM TLSPem `yaml:"tls_pem,omitempty"` CACerts string `yaml:"ca_certs,omitempty"` CAPool *x509.CertPool `yaml:"-"` SkipSSLValidation bool `yaml:"skip_ssl_validation,omitempty"` Backends BackendConfig `yaml:"backends,omitempty"` Broker BrokerConfig `yaml:"broker,omitempty"` DisableKeepAlives bool `yaml:"disable_keep_alives"` MaxIdleConns int `yaml:"max_idle_conns,omitempty"` MaxIdleConnsPerHost int `yaml:"max_idle_conns_per_host,omitempty"` DbConn string `yaml:"db_conn"` SQLCnxMaxIdle int `yaml:"sql_cnx_max_idle"` SQLCnxMaxOpen int `yaml:"sql_cnx_max_open"` SQLCnxMaxLife string `yaml:"sql_cnx_max_life"` NotExitWhenConnFailed bool `yaml:"not_exit_when_conn_failed"` DB *gorm.DB `yaml:"-"` BaseURL string `yaml:"base_url"` }
func DefaultConfig ¶
func InitConfigFromFile ¶
func (*Config) Initialize ¶
type GorouterConfig ¶
Click to show internal directories.
Click to hide internal directories.