Documentation
¶
Index ¶
Constants ¶
View Source
const Channel = "org.codeberg.clambin.proteus.homewizard"
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector( publisher collector.Publisher[homewizard.RecentMeasurement], poller collector.Poller[homewizard.RecentMeasurement], namespace string, logger *slog.Logger, ) *collector.PublishingCollector[homewizard.RecentMeasurement]
Types ¶
type HomeWizardClient ¶
type HomeWizardClient interface {
GetRecentMeasurement(ctx context.Context) (homewizard.RecentMeasurement, error)
GetDeviceInformation(ctx context.Context) (homewizard.DeviceInformation, error)
}
type Poller ¶
type Poller struct {
Client HomeWizardClient
Logger *slog.Logger
// contains filtered or unexported fields
}
func (*Poller) Poll ¶
func (p *Poller) Poll(ctx context.Context) (homewizard.RecentMeasurement, error)
Click to show internal directories.
Click to hide internal directories.