Documentation ¶
Index ¶
- Variables
- type AspectCommand
- type CharacteristicCommand
- type ConceptCommand
- type Controller
- type DeviceClassCommand
- type DeviceCommand
- type DeviceGroupCommand
- type DeviceTypeCommand
- type FunctionCommand
- type HubCommand
- type Listener
- func AspectsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func CharacteristicsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func ConceptsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func DeviceClassesListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func DeviceGroupListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func DeviceListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func DeviceTypeListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func FunctionsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func HubListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func LocationsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- func ProtocolListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
- type LocationCommand
- type ProtocolCommand
- type SecuritySink
Constants ¶
This section is empty.
Variables ¶
View Source
var Factories = []func(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error){}
Functions ¶
This section is empty.
Types ¶
type AspectCommand ¶
type CharacteristicCommand ¶
type CharacteristicCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` Characteristic models.Characteristic `json:"characteristic"` }
type ConceptCommand ¶
type Controller ¶
type Controller interface { SetDevice(device models.Device, owner string) error DeleteDevice(id string) error SetHub(hub models.Hub, owner string) error DeleteHub(id string) error SetDeviceType(deviceType models.DeviceType, owner string) error DeleteDeviceType(id string) error SetDeviceGroup(deviceGroup models.DeviceGroup, owner string) error DeleteDeviceGroup(id string) error SetProtocol(protocol models.Protocol, owner string) error DeleteProtocol(id string) error SetAspect(aspect models.Aspect, owner string) error DeleteAspect(id string) error SetCharacteristic(characteristic models.Characteristic, owner string) error DeleteCharacteristic(id string) error SetConcept(concept models.Concept, owner string) error DeleteConcept(id string) error SetDeviceClass(class models.DeviceClass, owner string) error DeleteDeviceClass(id string) error SetFunction(function models.Function, owner string) error DeleteFunction(id string) error SetLocation(location models.Location, owner string) error DeleteLocation(id string) error SendDone(done donewait.DoneMsg) error }
type DeviceClassCommand ¶
type DeviceClassCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` DeviceClass models.DeviceClass `json:"device_class"` }
type DeviceCommand ¶
type DeviceGroupCommand ¶
type DeviceGroupCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` DeviceGroup models.DeviceGroup `json:"device_group"` Rights *model.ResourceRights `json:"rights,omitempty"` }
type DeviceTypeCommand ¶
type DeviceTypeCommand struct { Command string `json:"command"` Id string `json:"id"` Owner string `json:"owner"` DeviceType models.DeviceType `json:"device_type"` }
type FunctionCommand ¶
type HubCommand ¶
type Listener ¶
func AspectsListenerFactory ¶
func AspectsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func CharacteristicsListenerFactory ¶
func CharacteristicsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func ConceptsListenerFactory ¶
func ConceptsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func DeviceClassesListenerFactory ¶
func DeviceClassesListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func DeviceGroupListenerFactory ¶
func DeviceGroupListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func DeviceListenerFactory ¶
func DeviceListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func DeviceTypeListenerFactory ¶
func DeviceTypeListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func FunctionsListenerFactory ¶
func FunctionsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func HubListenerFactory ¶
func HubListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func LocationsListenerFactory ¶
func LocationsListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
func ProtocolListenerFactory ¶
func ProtocolListenerFactory(config config.Config, control Controller, securitySink SecuritySink) (topic string, listener Listener, err error)
type LocationCommand ¶
type ProtocolCommand ¶
Click to show internal directories.
Click to hide internal directories.