Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
View Source
var ( // Logger for allowing external routines to inject a log.Logger to this module. Logger = log.NewLogfmtLogger(os.Stdout) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetXDSLStatistics ¶
func (c *Client) GetXDSLStatistics() (*VDSLStatus, error)
GetXDSLStatistics returns the raw
/pages/systemMonitoring/xdslStatistics/GetxdslStatistics.html
type Delay ¶
Delay is a Zyxel specific type derived from time.Duration.
func (*Delay) UnmarshalText ¶
UnmarshalText parses the uptime format from Zyxel devices.
Example:
41 days: 20 hours: 46 minutes
type Uptime ¶
Uptime is a Zyxel specific type derived from time.Duration.
func (*Uptime) UnmarshalText ¶
UnmarshalText parses the uptime format from Zyxel devices.
Example:
41 days: 20 hours: 46 minutes
type VDSLStatus ¶
type VDSLStatus struct { Status string `text:"VDSL Training Status"` Mode string Profile string `text:"VDSL Profile"` TrafficType string LinkUptime Uptime LineRateUp units.Mbps LineRateDown units.Mbps ActualDataRateUp units.Mbps ActualDataRateDown units.Mbps SNRMarginUp units.Decibel SNRMarginDown units.Decibel ActualDelayUp Delay ActualDelayDown Delay TransmitPowerUp units.DecibelMilliwatt TransmitPowerDown units.DecibelMilliwatt ReceivePowerUp units.DecibelMilliwatt ReceivePowerDown units.DecibelMilliwatt AttenuationUp units.Decibel AttenuationDown units.Decibel AttainableDataRateUp units.Mbps AttainableDataRateDown units.Mbps }
func (*VDSLStatus) UnmarshalText ¶
func (s *VDSLStatus) UnmarshalText(data []byte) error
UnmarshalText can parse the text output from Zyxel DSL status and convert it to native data in VDSLStatus.
For examples see directory `testdata`.
Click to show internal directories.
Click to hide internal directories.