modem

package
v0.0.0-...-7ff9bb5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 10 Imported by: 0

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

type CM1000 struct {
	URL      string
	Username string
	Password string
}

func (*CM1000) GetStats

func (c *CM1000) GetStats()

func (*CM1000) GetWebToken

func (c *CM1000) GetWebToken() (string, error)

type CM1200

type CM1200 struct {
	URL      string
	Username string
	Password string
	// contains filtered or unexported fields
}

func (*CM1200) GetLogs

func (c *CM1200) GetLogs() ([]modemscrape.Log, error)

Jump to

Keyboard shortcuts

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