Versions in this module Expand all Collapse all v1 v1.0.0 Dec 24, 2023 Changes in this version + type DefaultTimestamper struct + func (t *DefaultTimestamper) Timestamp() int64 + type DownstreamChannel struct + Channel int + ChannelID int + CorrectedErrors float64 + Frequency float64 + LockStatus string + Modulation string + Power float64 + SignalToNoise float64 + UncorrectedErrors float64 + func NewDownstreamChannelFromLine(line string) (*DownstreamChannel, error) + func NewDownstreamChannelsFromResponse(response string) ([]*DownstreamChannel, error) + func (c *DownstreamChannel) Equal(o *DownstreamChannel) bool + type MotoClient struct + Address string + Logger log.Logger + Password string + Username string + func NewMotoClient(address, username, password string, logger log.Logger) *MotoClient + func NewMotoClientWithTimestamper(address, username, password string, logger log.Logger, timestamper Timestamper) *MotoClient + func (c *MotoClient) GetDownstreamChannels() ([]*DownstreamChannel, error) + func (c *MotoClient) GetHNAPURI() string + func (c *MotoClient) GetHNAPURL() (*url.URL, error) + func (c *MotoClient) GetPrivateKey() (string, error) + func (c *MotoClient) GetUID() (string, error) + func (c *MotoClient) GetUpstreamChannels() ([]*UpstreamChannel, error) + func (c *MotoClient) Login() (map[string]string, error) + func (c *MotoClient) SetPrivateKey(key string) error + func (c *MotoClient) SetUID(uid string) error + type Timestamper interface + Timestamp func() int64 + type UpstreamChannel struct + Channel int + ChannelID int + ChannelType string + Frequency float64 + LockStatus string + Power float64 + SymbolRate float64 + func NewUpstreamChannelFromLine(line string) (*UpstreamChannel, error) + func NewUpstreamChannelsFromResponse(response string) ([]*UpstreamChannel, error) + func (c *UpstreamChannel) Equal(o *UpstreamChannel) bool