routerclient

package
v0.0.0-...-4699474 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RouterClient

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

RouterClient is a client used for connecting and managing router

The preferred way of constructing client is calling NewRouterClient() method

func NewRouterClient

func NewRouterClient(routerURL string, username string, password string) (*RouterClient, error)

NewRouterClient constructs new Routerclient object, validating provided arguments It does not log in to router nor it creates the session

func (*RouterClient) GetSignalStats

func (c *RouterClient) GetSignalStats() (Signal, error)

GetSignalStats connects to router and fetches current signal stats

func (*RouterClient) Login

func (c *RouterClient) Login() error

Login initialize the sessio and logs in to router

func (RouterClient) Reboot

func (c RouterClient) Reboot() error

Reboot reboots the router ;)

type Signal

type Signal struct {
	RSRQ      int
	RSRP      int
	RSSI      int
	SINR      int
	Bandwidth signalBandwidth
	Power     signalPower
	EARFCN    signalEARFCN
}

Signal stores signal parameters

Jump to

Keyboard shortcuts

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