Versions in this module Expand all Collapse all v1 v1.0.1 May 4, 2023 v1.0.0 May 4, 2023 Changes in this version + type Api interface + CreateBackup func() ([]byte, error) + Login func() + PortsSettings func() ([]PortSettings, error) + PortsStats func() ([]PortStats, error) + type Client struct + Host string + Password string + Username string + func New(h, u, p string, httpClient *http.Client) *Client + func (t *Client) CreateBackup() ([]byte, error) + func (t *Client) Login() error + func (t *Client) Logout() error + func (t *Client) PortsSettings() ([]PortSettings, error) + func (t *Client) PortsStats() ([]PortStats, error) + func (t *Client) SystemInfo() (*SystemInfo, error) + type LinkStatus int64 + const At1000MF + const At100MF + const At100MH + const At10MF + const At10MH + const Auto + const LinkDown + func (s LinkStatus) String() string + type OnOff int64 + const Off + const On + func (s OnOff) String() string + type PortSettings struct + FlowCtrlAct OnOff + FlowCtrlCfg OnOff + Name string + SpeedAct LinkStatus + SpeedCfg LinkStatus + State PortStatus + TrunkInfo int + type PortStats struct + LinkStatus LinkStatus + Name string + RxBadPkt int + RxGoodPkt int + State PortStatus + TxBadPkt int + TxGoodPkt int + type PortStatus int64 + const PortDisabled + const PortEnabled + func (s PortStatus) String() string + type SystemInfo struct + Firmware string + Gateway string + Hardware string + IPAddress string + MacAddress string + Name string + NetMask string