Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConfig ¶
TestConfig creates config with all files in root directory
Types ¶
type App ¶
type App struct { sync.RWMutex ConfigFilename string Config *Config Cache *cache.Cache UDP *receiver.UDP TCP *receiver.TCP Pickle *receiver.TCP CarbonLink *cache.CarbonlinkListener Persister *persister.Whisper // contains filtered or unexported fields }
func (*App) GraceStop ¶
func (app *App) GraceStop()
GraceStop implements gracefully stop. Close all listening sockets, flush cache, stop application
func (*App) ParseConfig ¶
ParseConfig loads config from config file, schemas.conf, aggregation.conf
func (*App) ReloadConfig ¶
ReloadConfig reloads some settings from config
type Config ¶
type Config struct { Common commonConfig `toml:"common"` Whisper whisperConfig `toml:"whisper"` Cache cacheConfig `toml:"cache"` Udp udpConfig `toml:"udp"` Tcp tcpConfig `toml:"tcp"` Pickle pickleConfig `toml:"pickle"` Carbonlink carbonlinkConfig `toml:"carbonlink"` Pprof pprofConfig `toml:"pprof"` }
Config ...
type Duration ¶
Duration wrapper time.Duration for TOML
func (*Duration) MarshalText ¶
MarshalText encode text with TOML format
func (*Duration) UnmarshalText ¶
UnmarshalText from TOML
Click to show internal directories.
Click to hide internal directories.