cucc

package
v0.0.0-...-fcb8594 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_DELAY_AFTER_WRITE = 500
)

Variables

View Source
var (
	RegAdminName = regexp.MustCompile(`<DM name="User" val="(.*)"/>`)

	RegAdminPwd = regexp.MustCompile(`<DM name="Pass" val="(.*)"/>`)
)
View Source
var (
	RegDevice = regexp.MustCompile(`<title>(\w+)</title>`)
)

Functions

This section is empty.

Types

type CUCCProvider

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

func (*CUCCProvider) GetSuperAdmin

func (s *CUCCProvider) GetSuperAdmin() (*modem.SuperAdmin, error)

func (*CUCCProvider) IsMe

func (s *CUCCProvider) IsMe(root *html.Node) bool

func (*CUCCProvider) New

func (*CUCCProvider) Type

func (s *CUCCProvider) Type() string

type OptionFunc

type OptionFunc func(opt *options) error

func WithContext

func WithContext(ctx context.Context) OptionFunc

func WithHost

func WithHost(host string) OptionFunc

func WithMacAddr

func WithMacAddr(addr string) OptionFunc

Jump to

Keyboard shortcuts

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