Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultLockResourceKey = "routing_api_lock"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct { ListenPort uint16 `yaml:"listen_port"` HTTPEnabled bool `yaml:"http_enabled"` MTLSListenPort uint16 `yaml:"mtls_listen_port"` MTLSClientCAPath string `yaml:"mtls_client_ca_file"` MTLSServerCertPath string `yaml:"mtls_server_cert_file"` MTLSServerKeyPath string `yaml:"mtls_server_key_file"` }
type Config ¶
type Config struct { API APIConfig `yaml:"api"` AdminPort uint16 `yaml:"admin_port"` DebugAddress string `yaml:"debug_address"` LogGuid string `yaml:"log_guid"` MetronConfig MetronConfig `yaml:"metron_config"` MaxTTL time.Duration `yaml:"max_ttl"` SystemDomain string `yaml:"system_domain"` MetricsReportingIntervalString string `yaml:"metrics_reporting_interval"` MetricsReportingInterval time.Duration `yaml:"-"` StatsdEndpoint string `yaml:"statsd_endpoint"` StatsdClientFlushIntervalString string `yaml:"statsd_client_flush_interval"` StatsdClientFlushInterval time.Duration `yaml:"-"` OAuth OAuthConfig `yaml:"oauth"` RouterGroups models.RouterGroups `yaml:"router_groups"` ReservedSystemComponentPorts []uint16 `yaml:"reserved_system_component_ports"` FailOnRouterPortConflicts bool `yaml:"fail_on_router_port_conflicts"` SqlDB SqlDB `yaml:"sqldb"` Locket locket.ClientLocketConfig `yaml:"locket"` UUID string `yaml:"uuid"` SkipSSLValidation bool `yaml:"skip_ssl_validation"` LockTTL time.Duration `yaml:"lock_ttl"` RetryInterval time.Duration `yaml:"retry_interval"` LockResouceKey string `yaml:"lock_resource_key"` }
type MetronConfig ¶
type OAuthConfig ¶
type SqlDB ¶
type SqlDB struct { Host string `yaml:"host"` Port uint16 `yaml:"port"` Schema string `yaml:"schema"` Type string `yaml:"type"` Username string `yaml:"username"` Password string `yaml:"password"` CACert string `yaml:"ca_cert"` SkipSSLValidation bool `yaml:"-"` SkipHostnameValidation bool `yaml:"skip_hostname_validation"` MaxIdleConns int `yaml:"max_idle_connections"` MaxOpenConns int `yaml:"max_open_connections"` ConnMaxLifetime int `yaml:"connections_max_lifetime_seconds"` }
Click to show internal directories.
Click to hide internal directories.