config

package
v0.0.0-...-72f5fe1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2013 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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      "status"
	Nats              NatsConfig        "nats"
	Logging           LoggingConfig     "logging"
	LoggregatorConfig LoggregatorConfig "loggregatorConfig"

	Port       uint16 "port"
	Index      uint   "index"
	Pidfile    string "pidfile"
	GoMaxProcs int    "go_max_procs,omitempty"
	TraceKey   string "trace_key"
	AccessLog  string "access_log"

	PublishStartMessageIntervalInSeconds int "publish_start_message_interval"
	PruneStaleDropletsIntervalInSeconds  int "prune_stale_droplets_interval"
	DropletStaleThresholdInSeconds       int "droplet_stale_threshold"
	PublishActiveAppsIntervalInSeconds   int "publish_active_apps_interval"
	StartResponseDelayIntervalInSeconds  int "start_response_delay_interval"
	EndpointTimeoutInSeconds             int "endpoint_timeout"

	// These fields are populated by the `Process` function.
	PruneStaleDropletsInterval time.Duration
	DropletStaleThreshold      time.Duration
	PublishActiveAppsInterval  time.Duration
	StartResponseDelayInterval time.Duration
	EndpointTimeout            time.Duration

	Ip string
}

func DefaultConfig

func DefaultConfig() *Config

func InitConfigFromFile

func InitConfigFromFile(path string) *Config

func (*Config) Process

func (c *Config) Process()

type LoggingConfig

type LoggingConfig struct {
	File   string "file"
	Syslog string "syslog"
	Level  string "level"
}

type LoggregatorConfig

type LoggregatorConfig struct {
	Url string
}

type NatsConfig

type NatsConfig struct {
	Host string "host"
	Port uint16 "port"
	User string "user"
	Pass string "pass"
}

type StatusConfig

type StatusConfig struct {
	Port uint16 "port"
	User string "user"
	Pass string "pass"
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL