daemon

package
v0.0.0-...-403286f Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finish

func Finish()

func Init

func Init()

func ReadConfig

func ReadConfig(cfgPath string) error

Types

type Config

type Config struct {
	PidPath                  string   `toml:"pid-file"`
	LogPath                  string   `toml:"log-file"`
	LogCycle                 duration `toml:"log-cycle-interval"`
	DbConnectString          string   `toml:"db-connect-string"`
	MaxCachedPoints          int      `toml:"max-cached-points"`
	MaxCache                 duration `toml:"max-cache-duration"`
	MinCache                 duration `toml:"min-cache-duration"`
	GraphiteTextListenSpec   string   `toml:"graphite-text-listen-spec"`
	GraphiteUdpListenSpec    string   `toml:"graphite-udp-listen-spec"`
	GraphitePickleListenSpec string   `toml:"graphite-pickle-listen-spec"`
	StatsdTextListenSpec     string   `toml:"statsd-text-listen-spec"`
	StatsdUdpListenSpec      string   `toml:"statsd-udp-listen-spec"`
	HttpListenSpec           string   `toml:"http-listen-spec"`
	Workers                  int
	DSs                      []DSSpec `toml:"ds"`
	StatFlush                duration `toml:"stat-flush-interval"`
	StatsNamePrefix          string   `toml:"stats-name-prefix"`
}
var Cfg *Config

func (*Config) FindMatchingDSSpec

func (c *Config) FindMatchingDSSpec(name string) *rrd.DSSpec

type DSSpec

type DSSpec struct {
	Regexp    regex
	Step      duration
	Heartbeat duration
	RRAs      []RRASpec
}

type RRASpec

type RRASpec struct {
	Function string
	Step     time.Duration
	Size     time.Duration
	Xff      float64
}

func (*RRASpec) UnmarshalText

func (r *RRASpec) UnmarshalText(text []byte) error

type ServiceManager

type ServiceManager struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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