Documentation
¶
Overview ¶
Package telemetry collects hardware metrics and streams them to the Hub.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector reads hardware metrics on a ticker and sends them via a callback.
func NewCollector ¶
func NewCollector(sendFn func(protocol.TelemetryData)) *Collector
NewCollector creates a new telemetry collector. sendFn is called each tick with the collected metrics.
func (*Collector) SetSteamStatusFunc ¶
func (c *Collector) SetSteamStatusFunc(fn SteamStatusFunc)
SetSteamStatusFunc sets the callback for reading Steam status.
func (*Collector) Start ¶
Start begins collecting metrics at the given interval (seconds). If already running, this is a no-op.
func (*Collector) UpdateInterval ¶
UpdateInterval restarts the collector with a new interval.
type SteamStatusFunc ¶
SteamStatusFunc returns Steam running state and gaming mode.
Click to show internal directories.
Click to hide internal directories.