Documentation
¶
Index ¶
- func BuildContainer() (container *dig.Container)
- type Client
- func (c *Client) BasicAuth(login, pass string)
- func (c *Client) DeleteAlexa(alexaId int64) *httptest.ResponseRecorder
- func (c *Client) DeleteDevice(deviceId int64) *httptest.ResponseRecorder
- func (c *Client) GetAccessList() *httptest.ResponseRecorder
- func (c *Client) GetAlexa(alexaId int64) *httptest.ResponseRecorder
- func (c *Client) GetAlexaList(limit, offset int, order, sort string) *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) NewAlexa(alexa interface{}) *httptest.ResponseRecorder
- 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) UpdateAlexa(alexaId int64, alexa interface{}) *httptest.ResponseRecorder
- func (c *Client) UpdateDevice(deviceId int64, device interface{}) *httptest.ResponseRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) DeleteAlexa ¶ added in v0.3.0
func (c *Client) DeleteAlexa(alexaId int64) *httptest.ResponseRecorder
DeleteAlexa ...
func (*Client) DeleteDevice ¶
func (c *Client) DeleteDevice(deviceId int64) *httptest.ResponseRecorder
DeleteDevice ...
func (*Client) GetAccessList ¶
func (c *Client) GetAccessList() *httptest.ResponseRecorder
GetAccessList ...
func (*Client) GetAlexa ¶ added in v0.3.0
func (c *Client) GetAlexa(alexaId int64) *httptest.ResponseRecorder
GetAlexa ...
func (*Client) GetAlexaList ¶ added in v0.3.0
func (c *Client) GetAlexaList(limit, offset int, order, sort string) *httptest.ResponseRecorder
GetAlexaList ...
func (*Client) GetDevice ¶
func (c *Client) GetDevice(deviceId int64) *httptest.ResponseRecorder
GetDevice ...
func (*Client) GetDeviceList ¶
func (c *Client) GetDeviceList(limit, offset int, order, sort string) *httptest.ResponseRecorder
GetDeviceList ...
func (*Client) GetDeviceState ¶
func (c *Client) GetDeviceState(stateId int64) *httptest.ResponseRecorder
GetDeviceState ...
func (*Client) NewAlexa ¶ added in v0.3.0
func (c *Client) NewAlexa(alexa interface{}) *httptest.ResponseRecorder
alexa
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
SearchDevice ...
func (*Client) UpdateAlexa ¶ added in v0.3.0
func (c *Client) UpdateAlexa(alexaId int64, alexa interface{}) *httptest.ResponseRecorder
UpdateAlexa ...
func (*Client) UpdateDevice ¶
func (c *Client) UpdateDevice(deviceId int64, device interface{}) *httptest.ResponseRecorder
UpdateDevice ...
Click to show internal directories.
Click to hide internal directories.