hub

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OIDs = map[oids.Name]OID{
	oids.SysUpTime:                  "1.3.6.1.2.1.1.3.0",
	oids.ArrisRouterHardwareVersion: OID(arrisRouterMIB + ".1.5.10.0"),
	oids.ArrisRouterFirmwareVersion: OID(arrisRouterMIB + ".1.5.11.0"),

	oids.ArrisRouterBssSSID: OID(arrisRouterMIB + ".1.3.22.1.2.10001"),

	oids.ArrisRouterBssActive24GHz: OID(arrisRouterMIB + ".1.3.22.1.3.10001"),
	oids.ArrisRouterBssActive5GHz:  OID(arrisRouterMIB + ".1.3.22.1.3.10101"),
}
View Source
var OIDsFormatter = map[oids.Name]FormatterFunc{
	oids.SysUpTime:                 durationFormatter,
	oids.ArrisRouterBssActive24GHz: wifiStatusFormatter,
	oids.ArrisRouterBssActive5GHz:  wifiStatusFormatter,
}

Functions

This section is empty.

Types

type FormatterFunc

type FormatterFunc func(value string) (interface{}, string)

type Hub

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

func NewHub

func NewHub() *Hub

func (Hub) GetValue

func (hub Hub) GetValue(oidName oids.Name) interface{}

func (Hub) ListAll

func (hub Hub) ListAll()

func (Hub) ListSelected added in v0.0.3

func (hub Hub) ListSelected()

func (*Hub) Login

func (hub *Hub) Login() error

func (Hub) Logout

func (hub Hub) Logout()

func (Hub) Reboot

func (hub Hub) Reboot()

func (Hub) SetWifi24GHzEnabled

func (hub Hub) SetWifi24GHzEnabled(enabled bool)

func (Hub) SetWifi5GHzEnabled

func (hub Hub) SetWifi5GHzEnabled(enabled bool)

type OID

type OID string

Jump to

Keyboard shortcuts

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