Documentation ¶
Overview ¶
Package agent implements the client side of the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent wraps the state of the client.
type LoadProbe ¶
type LoadProbe struct {
// contains filtered or unexported fields
}
LoadProbe gathers the system load average.
func CreateLoadProbe ¶
CreateLoadProbe creates a Probe that collects the system load average periodically.
func (*LoadProbe) Run ¶
func (p *LoadProbe) Run()
Run executes the Probe's collect loop, this is usually executed in a separate goroutine.
type Probe ¶
Probe defines an interface for components that gather data from the node and return them as Records that can be sent back to the Server.
type SensorsProbe ¶
type SensorsProbe struct {
// contains filtered or unexported fields
}
SensorsProbe gathers data from sensors, most importantly temperature.
func CreateSensorsProbe ¶
func CreateSensorsProbe(recQ chan<- model.Record) (*SensorsProbe, error)
CreateSensorsProbe creates a Probe that queries the sensors attached to the system periodically.
func (*SensorsProbe) Collect ¶
func (p *SensorsProbe) Collect() (*model.Record, error)
Collect data from the sensors
func (*SensorsProbe) Run ¶
func (p *SensorsProbe) Run()
Run executes the Probe's collect loop, this is usually executed in a separate goroutine.
func (*SensorsProbe) Running ¶
func (p *SensorsProbe) Running() bool
Running returns the Probe's active flag