Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Status StatusConfig `yaml:"status"` Nats []NatsConfig `yaml:"nats"` Logging LoggingConfig `yaml:"logging"` Port uint16 `yaml:"port"` Index uint `yaml:"index"` GoMaxProcs int `yaml:"go_max_procs,omitempty"` TraceKey string `yaml:"trace_key"` AccessLog string `yaml:"access_log"` PublishStartMessageIntervalInSeconds int `yaml:"publish_start_message_interval"` PruneStaleDropletsIntervalInSeconds int `yaml:"prune_stale_droplets_interval"` DropletStaleThresholdInSeconds int `yaml:"droplet_stale_threshold"` PublishActiveAppsIntervalInSeconds int `yaml:"publish_active_apps_interval"` StartResponseDelayIntervalInSeconds int `yaml:"start_response_delay_interval"` EndpointTimeoutInSeconds int `yaml:"endpoint_timeout"` DrainTimeoutInSeconds int `yaml:"drain_timeout,omitempty"` // These fields are populated by the `Process` function. PruneStaleDropletsInterval time.Duration `yaml:"-"` DropletStaleThreshold time.Duration `yaml:"-"` PublishActiveAppsInterval time.Duration `yaml:"-"` StartResponseDelayInterval time.Duration `yaml:"-"` EndpointTimeout time.Duration `yaml:"-"` DrainTimeout time.Duration `yaml:"-"` Ip string `yaml:"-"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func InitConfigFromFile ¶
func (*Config) Initialize ¶
type LoggingConfig ¶
type NatsConfig ¶
type StatusConfig ¶
Click to show internal directories.
Click to hide internal directories.