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
Click to show internal directories.
Click to hide internal directories.