Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListModems ¶
func ListModems() []string
func RegisterModems ¶
func RegisterOutputter ¶
Types ¶
type Configuration ¶
type Configuration struct { Modem *ModemConfiguration `toml:"modem"` SpeedTest *SpeedtestConfiguration `toml:"speedtest"` Output map[string]toml.Primitive `toml:"output"` // contains filtered or unexported fields }
func LoadConfiguration ¶
func LoadConfiguration(file string) (*Configuration, error)
func (*Configuration) UnifyModemConfiguration ¶
func (c *Configuration) UnifyModemConfiguration(name string, v interface{}) (err error)
func (*Configuration) UnifyOutputConfiguration ¶
func (c *Configuration) UnifyOutputConfiguration(name string, v interface{}) (err error)
type Modem ¶
type Modem interface { Init(*Configuration) error Gather() (*ModemStatistics, error) }
type ModemConfiguration ¶
type ModemStatistics ¶
type ModemStatistics struct { Upstream StreamStatistics Downstream StreamStatistics ModemUptime time.Duration ShowtimeUptime time.Duration }
type NBNTest ¶
type NBNTest struct { Config *Configuration Outputs Outputs // contains filtered or unexported fields }
func (*NBNTest) CollectFromSpeedtest ¶
type Outputs ¶
type Outputs []Outputter
func (*Outputs) Init ¶
func (o *Outputs) Init(c *Configuration)
func (Outputs) RecordModem ¶
func (o Outputs) RecordModem(t time.Time, stat ModemStatistics)
type SpeedtestConfiguration ¶
Click to show internal directories.
Click to hide internal directories.