Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagUpstream = "Us" TagDownstream = "Ds" TagUpstreamOFDM = "UsOfdma" TagDownstreamOFDM = "DsOfdm" PageStatus = "DocsisStatus.htm" PageLog = "eventLog.htm" )
View Source
const Login = "GenieLogin.asp"
View Source
const Stats = "DocsisStatus.asp"
View Source
const URL = "http://192.168.100.1"
Variables ¶
View Source
var ( CM1200VarRegExp = regexp.MustCompile(`(?s)Init(\w+)TableTagValue.*?tagValueList = '([0-9a-zA-Z|. &;:+~]+)';`) CM1200LogRegExp = regexp.MustCompile(`var xmlFormat = '<docsDevEventTable>((?:<tr>.*?<\\/tr>)*)<\\/docsDevEventTable>`) )
View Source
var (
ErrMustLogin = errors.New("must log in to see stats")
)
View Source
var ( // Valid Firmware versions for this implementation. // I'm not really sure how I intend this to be used as things need to be rewritten. FirmwareVersion = []string{"2.02.05"} )
Functions ¶
This section is empty.
Types ¶
type CM1000 ¶
func (*CM1000) GetWebToken ¶
type CM1200 ¶
type CM1200 struct { URL string Username string Password string // contains filtered or unexported fields }
func (*CM1200) GetStats ¶
func (c *CM1200) GetStats() ([]modemscrape.UpstreamChannel, []modemscrape.DownstreamChannel, []modemscrape.UpstreamOFDMChannel, []modemscrape.DownstreamOFDMChannel, error)
Click to show internal directories.
Click to hide internal directories.