cmcc

package
v0.0.0-...-c6c437c Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIME_DELAY_AFTER_WRITE = 500
)

Variables

View Source
var (
	RegIP = regexp.MustCompile(`(\d{1,3}\.){3}\d{1,3}`)

	RegMAC = regexp.MustCompile(`([\d|\w]{1,3}:){5}[\d|\w]{1,3}`)
)
View Source
var (
	RegAdminName = regexp.MustCompile(`admin_name=(.*)`)

	RegAdminPwd = regexp.MustCompile(`admin_pwd=(.*)`)
)

Functions

This section is empty.

Types

type CMCCProvider

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

func (*CMCCProvider) GetSuperAdmin

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

func (*CMCCProvider) IsMe

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

func (*CMCCProvider) New

func (*CMCCProvider) Type

func (s *CMCCProvider) Type() string

type OptionFunc

type OptionFunc func(opt *options) error

func WithContext

func WithContext(ctx context.Context) OptionFunc

func WithHclient

func WithHclient(hclient *http.Client) OptionFunc

func WithHost

func WithHost(host string) OptionFunc

func WithMacAddr

func WithMacAddr(addr string) OptionFunc

func WithTelnetURL

func WithTelnetURL(uri string) OptionFunc

Jump to

Keyboard shortcuts

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