Documentation ¶
Index ¶
- func BuildContainer() (container *dig.Container)
- type Client
- func (c *Client) BasicAuth(login, pass string)
- func (c *Client) DeleteDevice(deviceId int64) *httptest.ResponseRecorder
- func (c *Client) GetAccessList() *httptest.ResponseRecorder
- func (c *Client) GetDevice(deviceId int64) *httptest.ResponseRecorder
- func (c *Client) GetDeviceList(limit, offset int, order, sort string) *httptest.ResponseRecorder
- func (c *Client) GetDeviceState(stateId int64) *httptest.ResponseRecorder
- func (c *Client) LoginAsAdmin() (err error)
- func (c *Client) LoginAsUser() (err error)
- func (c *Client) NewDevice(device interface{}) *httptest.ResponseRecorder
- func (c *Client) NewDeviceState(device interface{}) *httptest.ResponseRecorder
- func (c *Client) SearchDevice(query string, limit, offset int) *httptest.ResponseRecorder
- func (c *Client) SetToken(token string)
- func (c *Client) Signin() *httptest.ResponseRecorder
- func (c *Client) Signout() *httptest.ResponseRecorder
- func (c *Client) UpdateDevice(deviceId int64, device interface{}) *httptest.ResponseRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContainer ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteDevice ¶
func (c *Client) DeleteDevice(deviceId int64) *httptest.ResponseRecorder
func (*Client) GetAccessList ¶
func (c *Client) GetAccessList() *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 (*Client) LoginAsUser ¶
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) Signout ¶
func (c *Client) Signout() *httptest.ResponseRecorder
func (*Client) UpdateDevice ¶
func (c *Client) UpdateDevice(deviceId int64, device interface{}) *httptest.ResponseRecorder
Click to show internal directories.
Click to hide internal directories.