modem

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CMCCProvider string = "cmcc"
	CUCCProvider string = "cucc"
	CTCCProvider string = "ctcc"
)

Variables

View Source
var (
	Register = defaultHook.Register
	Get      = defaultHook.Get
)

Functions

This section is empty.

Types

type AdminFlag

type AdminFlag struct {
	Type string `yaml:"type" name:"type" description:"device type"`
	Host string `yaml:"host" name:"host" description:"telnet host"`
	Port int    `yaml:"port" name:"port" description:"telnet port"`
}

func (*AdminFlag) Default

func (*AdminFlag) Default() *AdminFlag

type Provider

type Provider interface {
	Type() string

	IsMe(*html.Node) bool

	New(context.Context, *AdminFlag) (Provider, error)

	GetSuperAdmin() (*SuperAdmin, error)
}

type SuperAdmin

type SuperAdmin struct {
	Addr       string `json:"addr,omitempty"`
	Device     string `json:"device,omitempty"`
	MacAddr    string `json:"mac_addr,omitempty"`
	AdminName  string `json:"admin_name,omitempty"`
	AdminPwd   string `json:"admin_pwd,omitempty"`
	TelnetName string `json:"telnet_name,omitempty"`
	TelnetPwd  string `json:"telnet_pwd,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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