api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: GPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildContainer

func BuildContainer() (container *dig.Container)

BuildContainer ...

Types

type Client

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

Client ...

func NewClient

func NewClient(engine *gin.Engine) *Client

NewClient ...

func (*Client) BasicAuth

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

BasicAuth ...

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) LoginAsAdmin

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

LoginAsAdmin ...

func (*Client) LoginAsUser

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

LoginAsUser ...

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) SetToken

func (c *Client) SetToken(token string)

SetToken ...

func (*Client) Signin

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

auth

func (*Client) Signout

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

Signout ...

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 ...

Jump to

Keyboard shortcuts

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