Documentation
¶
Index ¶
- type Amqp
- type DataPublish
- type DataRequest
- type DataUpdate
- type DeviceAuthRequest
- type DeviceAuthResponse
- type DeviceListResponse
- type DeviceRegisterRequest
- type DeviceRegisteredResponse
- type DeviceUnregisterRequest
- type DeviceUnregisteredResponse
- type InMsg
- type SchemaUpdateRequest
- type SchemaUpdatedResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amqp ¶
type Amqp struct {
// contains filtered or unexported fields
}
Amqp handles the connection, queues and exchanges declared
func (*Amqp) PublishPersistentMessage ¶
PublishPersistentMessage sends a persistent message to RabbitMQ
type DataPublish ¶
DataPublish represents the incoming publish data command
type DataRequest ¶
DataRequest represents the incoming request data command
type DataUpdate ¶
DataUpdate represents the incoming update data command
type DeviceAuthRequest ¶
DeviceAuthRequest represents the incoming auth device command
type DeviceAuthResponse ¶
DeviceAuthResponse represents the outgoing auth device command response
type DeviceListResponse ¶
type DeviceListResponse struct { Things []*entities.Thing `json:"devices"` Error *string `json:"error"` }
DeviceListResponse represents the outgoing list devices command response
type DeviceRegisterRequest ¶
DeviceRegisterRequest represents the incoming register device request message
type DeviceRegisteredResponse ¶
type DeviceRegisteredResponse struct { ID string `json:"id"` Token string `json:"token"` Error *string `json:"error"` }
DeviceRegisteredResponse represents the outgoing register device response message
type DeviceUnregisterRequest ¶
type DeviceUnregisterRequest struct {
ID string `json:"id"`
}
DeviceUnregisterRequest represents the incoming unregister device request message
type DeviceUnregisteredResponse ¶
DeviceUnregisteredResponse represents the outgoing unregister device response message
type SchemaUpdateRequest ¶
type SchemaUpdateRequest struct { ID string `json:"id"` Schema []entities.Schema `json:"schema,omitempty"` }
SchemaUpdateRequest represents the incoming update schema request message
type SchemaUpdatedResponse ¶
SchemaUpdatedResponse represents the outgoing update schema response message