Documentation ¶
Index ¶
- Constants
- type Client
- type ClientConfig
- type ClientSpec
- type Device
- type DeviceList
- type DeviceValue
- type DynamicAlmondModeUpdated
- type DynamicClientAdded
- type DynamicClientJoined
- type DynamicClientLeft
- type DynamicIndexUpdated
- type Meta
- type Request
- type Response
- type UpdateDeviceIndex
- type UpdateDeviceIndexRequest
Constants ¶
View Source
const ( Action = "Action" CommandType = "CommandType" MobileInternalIndex = "MobileInternalIndex" )
View Source
const DefaultHost = "localhost"
View Source
const DefaultPort = "7681"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides an API for interacting with the Securifi Almond websocket API.
func NewClient ¶
func NewClient(c ClientConfig) (*Client, error)
type ClientConfig ¶
type ClientSpec ¶
type Device ¶
type Device struct { Data map[string]string `json:"Data"` DeviceValues map[string]DeviceValue `json:"DeviceValues"` }
type DeviceList ¶
type DeviceValue ¶
type DynamicClientAdded ¶
type DynamicClientAdded struct { Meta Clients map[string]ClientSpec `json:"Clients"` }
type DynamicClientJoined ¶
type DynamicClientJoined struct { Meta Clients map[string]ClientSpec `json:"Clients"` }
type DynamicClientLeft ¶
type DynamicClientLeft struct { Meta Clients map[string]ClientSpec `json:"Clients"` }
type DynamicIndexUpdated ¶
type Meta ¶
type Meta struct { MII string `json:"MobileInternalIndex,omitempty"` CT string `json:"CommandType,omitempty"` ACT string `json:"Action,omitempty"` }
func (*Meta) CommandType ¶
func (*Meta) MobileInternalIndex ¶
func (*Meta) SetCommandType ¶
func (*Meta) SetMobileInternalIndex ¶
type Request ¶
type Request interface {
SetMobileInternalIndex(string)
}
func NewDeviceListRequest ¶
func NewDeviceListRequest() Request
type UpdateDeviceIndex ¶
Click to show internal directories.
Click to hide internal directories.