Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLoginFailed = errors.New("login failed")
ErrLoginFailed is returned when login failed, e.g. invalid credentials.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client for a CH7465LG modem.
func (*Client) Downstreams ¶
func (c *Client) Downstreams() ([]Downstream, error)
Downstreams fetches statistics for bonded downstream channels.
type Downstream ¶
type Downstream struct { Frequency int64 `xml:"freq"` Power int `xml:"pow"` SNR int `xml:"snr"` Modulation string `xml:"mod"` ChannelID int `xml:"chid"` RxMER float64 `xml:"RxMER"` PreRSErrs int64 `xml:"PreRs"` PostRSErrs int64 `xml:"PostRs"` IsQamLocked int `xml:"IsQamLocked"` IsFECLocked int `xml:"IsFECLocked"` IsMpegLocked int `xml:"IsMpegLocked"` }
Downstream represents a bonded downstream channel.
type FormValues ¶
type FormValues []FormValue
FormValues is used for submitting forms. Order matters, thus we cannot use a map (e.g. url.Values).
func (FormValues) Encode ¶
func (v FormValues) Encode() string
Encode encodes the form values into “URL encoded” form ("bar=baz&foo=quux").
Click to show internal directories.
Click to hide internal directories.