Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAddrs ¶
GenerateAddrs returns a list of all IPs in addrRange
Types ¶
type Config ¶
type Config struct { Version string MetricsPath *string `yaml:"metrcis_path"` ListenAddress *string `yaml:"listen_address"` BasePort *uint16 `yaml:"base_port"` Defaults *Defaults `yaml:"defaults"` SrcRange *string `yaml:"src_range"` Classes []Class `yaml:"classes"` Paths []Path `yaml:"paths"` Routers []Router `yaml:"routers"` }
Config represents the configuration of matroschka-prober
func (*Config) ApplyDefaults ¶
func (c *Config) ApplyDefaults()
ApplyDefaults applies default settings if they are missing from loaded config.
func (*Config) GetConfiguredSrcAddr ¶
GetConfiguredSrcAddr gets an IPv4 address of the configured src interface
func (*Config) PathToProberHops ¶
PathToProberHops generates prober hops
type Defaults ¶
type Defaults struct { MeasurementLengthMS *uint64 `yaml:"measurement_length_ms"` PayloadSizeBytes *uint64 `yaml:"payload_size_bytes"` PPS *uint64 `yaml:"pps"` SrcRange *string `yaml:"src_range"` TimeoutMS *uint64 `yaml:"timeout"` SrcInterface *string `yaml:"src_interface"` }
Defaults represents the default section of the config
Click to show internal directories.
Click to hide internal directories.