Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Global GlobalConfig Trackers []Tracker Outputs []outputs.Output }
Config is the root of the configuration
func (*Config) GetTracker ¶
GetTracker retrive tracker configuration
func (*Config) LoadConfig ¶
LoadConfig loads the given config file and applies it to c
type Duration ¶
Duration custom configuration type
func (*Duration) UnmarshalTOML ¶
UnmarshalTOML unmarshal TOML bytes to Duration
type Flags ¶
type Flags struct { ListenAddr string `flag:"listen-addr" desc:"HTTP listen address" default:":8080"` ConfigFile string `flag:"config-file" desc:"Config file" default:"zero-analytics.toml"` Debug bool `flag:"debug" desc:"Output debug logs" default:"false"` }
Flags contain global configuration
type GlobalConfig ¶
GlobalConfig is the global section fo the configuration
Click to show internal directories.
Click to hide internal directories.