api

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: GPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainer

func BuildContainer() (container *dig.Container)

Types

type Client

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

func NewClient

func NewClient(engine *gin.Engine) *Client

func (*Client) BasicAuth

func (c *Client) BasicAuth(login, pass string)

func (*Client) DeleteDevice

func (c *Client) DeleteDevice(deviceId int64) *httptest.ResponseRecorder

func (*Client) GetAccessList

func (c *Client) GetAccessList() *httptest.ResponseRecorder

func (*Client) GetDevice

func (c *Client) GetDevice(deviceId int64) *httptest.ResponseRecorder

func (*Client) GetDeviceList

func (c *Client) GetDeviceList(limit, offset int, order, sort string) *httptest.ResponseRecorder

func (*Client) GetDeviceState

func (c *Client) GetDeviceState(stateId int64) *httptest.ResponseRecorder

func (*Client) LoginAsAdmin

func (c *Client) LoginAsAdmin() (err error)

func (*Client) LoginAsUser

func (c *Client) LoginAsUser() (err error)

func (*Client) NewDevice

func (c *Client) NewDevice(device interface{}) *httptest.ResponseRecorder

device

func (*Client) NewDeviceState

func (c *Client) NewDeviceState(device interface{}) *httptest.ResponseRecorder

device state

func (*Client) SearchDevice

func (c *Client) SearchDevice(query string, limit, offset int) *httptest.ResponseRecorder

func (*Client) SetToken

func (c *Client) SetToken(token string)

func (*Client) Signin

func (c *Client) Signin() *httptest.ResponseRecorder

auth

func (*Client) Signout

func (c *Client) Signout() *httptest.ResponseRecorder

func (*Client) UpdateDevice

func (c *Client) UpdateDevice(deviceId int64, device interface{}) *httptest.ResponseRecorder

Jump to

Keyboard shortcuts

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