Documentation
¶
Index ¶
- Variables
- func InitEventHandling(db interfaces.Persistence) (err error)
- func PublisGatewayRemove(id string) (err error)
- func PublishDeviceInstance(instance model.DeviceInstance, creator string) (err error)
- func PublishDeviceInstanceRemove(id string) (err error)
- func PublishDeviceType(dt model.DeviceType, owner string) (err error)
- func PublishDeviceTypeRemove(id string) (err error)
- func PublishGateway(gw model.Gateway, owner string) (err error)
- func PublishGatewayCommand(gw GatewayCommand) (err error)
- func PublishGatewayRef(gw model.GatewayRef, name string, owner string) (err error)
- func PublishValueType(vt model.ValueType, owner string) (err error)
- func PublishValueTypeRemove(id string) (err error)
- type DeviceTypeCommand
- type DeviceinstanceCommand
- type GatewayCommand
- type ValueTypeCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var AmqpConn *amqp_wrapper_lib.Connection
Functions ¶
func InitEventHandling ¶
func InitEventHandling(db interfaces.Persistence) (err error)
func PublisGatewayRemove ¶
func PublishDeviceInstance ¶
func PublishDeviceInstance(instance model.DeviceInstance, creator string) (err error)
func PublishDeviceType ¶
func PublishDeviceType(dt model.DeviceType, owner string) (err error)
func PublishDeviceTypeRemove ¶
func PublishGatewayCommand ¶
func PublishGatewayCommand(gw GatewayCommand) (err error)
func PublishGatewayRef ¶
func PublishGatewayRef(gw model.GatewayRef, name string, owner string) (err error)
func PublishValueTypeRemove ¶
Types ¶
type DeviceTypeCommand ¶
type DeviceTypeCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` DeviceType model.DeviceType `json:"device_type"` }
type DeviceinstanceCommand ¶
type DeviceinstanceCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` DeviceInstance model.DeviceInstance `json:"device_instance"` }
type GatewayCommand ¶
Click to show internal directories.
Click to hide internal directories.