router

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(username string, password string, csrf csrfParams) string

func SHA256

func SHA256(str string) string

Types

type Client

type Client struct {
	BaseURL string
	// contains filtered or unexported fields
}

func (*Client) Init

func (r *Client) Init(baseURL string)

func (*Client) Login

func (r *Client) Login(username, password string) LoginResp

func (*Client) Reboot

func (r *Client) Reboot() RebootResp

type LoginResp

type LoginResp struct {
	Error string `json:"errorCategory"`
	// contains filtered or unexported fields
}

type RebootResp

type RebootResp struct {
	ErrorCode int `json:"errcode"`
	// contains filtered or unexported fields
}

type Session

type Session struct {
	UnknownN string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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