Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetDeviceAPIUsage(deviceType string, deviceId int) (*awair_api.DeviceUsage, error)
- func (c *Client) GetDeviceList() (*awair_api.DeviceList, error)
- func (c *Client) GetLatestData(deviceType string, deviceId int) (*awair_api.DeviceDataList, error)
- func (c *Client) GetUserInfo() (*awair_api.User, error)
- func (c *Client) SetCacheTTL(ttl time.Duration)
Constants ¶
View Source
const ( DEVICES_KEY = "devices" DEVICE_LATEST_KEY_FORMAT = "device-latest-%s-%d" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDeviceAPIUsage ¶
func (*Client) GetDeviceList ¶
func (c *Client) GetDeviceList() (*awair_api.DeviceList, error)
func (*Client) GetLatestData ¶
func (*Client) SetCacheTTL ¶
Click to show internal directories.
Click to hide internal directories.