Documentation
¶
Index ¶
- Variables
- func MarshalForm(obj interface{}) ([]byte, error)
- func Operation(op string) map[string]string
- func Pad(data []byte, size int) []byte
- func ReadResponse[T any](data []byte) (*T, error)
- func Unpad(data []byte) []byte
- type AESCipher
- func (c *AESCipher) Decrypt(data []byte) ([]byte, error)
- func (c *AESCipher) DecryptBase64(data string) ([]byte, error)
- func (c *AESCipher) DecryptHex(data string) ([]byte, error)
- func (c *AESCipher) Encrypt(data []byte) ([]byte, error)
- func (c *AESCipher) EncryptBase64(data []byte) (string, error)
- func (c *AESCipher) EncryptHex(data []byte) (string, error)
- func (c *AESCipher) IV() string
- func (c *AESCipher) Key() string
- type AccessDevice
- type Client
- type ClientList
- type EncryptedFormData
- type EncryptedResponse
- type FormMarshaler
- type RSACipher
- type RSASigner
- type ResponseWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExceededMaxAttempts = errors.New("Login failed, maximum login attempts exceeded. Please wait for 60-120 minutes")
View Source
var ErrLoginError = errors.New("Login error")
View Source
var ErrLoginFailed = errors.New("Login failed, wrong password")
View Source
var ErrUserConflict = errors.New("Login conflict. Someone else is logged in.")
Functions ¶
func MarshalForm ¶
func ReadResponse ¶
Types ¶
type AESCipher ¶
type AESCipher struct {
// contains filtered or unexported fields
}
func GenAESCipher ¶
func NewAESCipher ¶
type AccessDevice ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetClientList ¶
func (client *Client) GetClientList() (*ClientList, error)
type ClientList ¶
type ClientList struct { Wireless []*AccessDevice `json:"access_devices_wireless_host"` Wired []*AccessDevice `json:"access_devices_wired"` }
type EncryptedFormData ¶
type EncryptedResponse ¶
type EncryptedResponse struct {
Data string `json:"data"`
}
type FormMarshaler ¶
type RSACipher ¶
type RSACipher struct {
// contains filtered or unexported fields
}
func ParseRSAKey ¶
type RSASigner ¶
type RSASigner struct {
// contains filtered or unexported fields
}
func NewRSASigner ¶
func (*RSASigner) DecryptResponse ¶
type ResponseWrapper ¶
Click to show internal directories.
Click to hide internal directories.