hg612

package
v0.0.0-...-6172eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DSLPath = "html/status/xdslStatus.asp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DSLStatus() (*VDSLStatus, error)
}

func New

func New(basePath string, client *http.Client) Client

type DSLCfg

type DSLCfg struct {
	Domain          string
	Status          string
	Modulation      string
	DataPath        string
	UpCurrRate      int64
	DownCurrRate    int64
	UpCurrRate2     int64
	DownCurrRate2   int64
	UpMaxRate       int64
	DownMaxRate     int64
	UpSNR           int64
	DownSNR         int64
	UpAttenuation   int64
	DownAttenuation int64
	UpPower         int64
	DownPower       int64
	TrafficType     string
}

type DSLStats

type DSLStats struct {
	Domain   string
	DownHEC  int64
	UpHEC    int64
	DownCRC  int64
	UpCRC    int64
	DownFEC  int64
	UpFEC    int64
	DownHEC2 int64
	UpHEC2   int64
	DownCRC2 int64
	UpCRC2   int64
	DownFEC2 int64
	UpFEC2   int64
}

type HG612Client

type HG612Client struct {
	// contains filtered or unexported fields
}

func (HG612Client) DSLStatus

func (c HG612Client) DSLStatus() (*VDSLStatus, error)

type VDSLStatus

type VDSLStatus struct {
	DSLCfg    DSLCfg
	DSLStats  DSLStats
	DSLUpTime int64
	Time      int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL