Documentation
¶
Index ¶
- Variables
- func InitTopic(bootstrapUrl string, topics ...string) (err error)
- type AspectCommand
- type CharacteristicCommand
- type ConceptCommand
- type DeviceClassCommand
- type DeviceCommand
- type DeviceGroupCommand
- type DeviceTypeCommand
- type FunctionCommand
- type HubCommand
- type KeySeparationBalancer
- type LocationCommand
- type ProtocolCommand
- type Publisher
- func (this *Publisher) PublishAspect(aspect models.Aspect) (err error)
- func (this *Publisher) PublishAspectCommand(cmd AspectCommand) error
- func (this *Publisher) PublishAspectDelete(id string) error
- func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic) (err error)
- func (this *Publisher) PublishCharacteristicCommand(cmd CharacteristicCommand) error
- func (this *Publisher) PublishCharacteristicDelete(id string) error
- func (this *Publisher) PublishConcept(concept models.Concept) (err error)
- func (this *Publisher) PublishConceptCommand(cmd ConceptCommand) error
- func (this *Publisher) PublishConceptDelete(id string) error
- func (this *Publisher) PublishDevice(device models.Device) (err error)
- func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass) (err error)
- func (this *Publisher) PublishDeviceClassCommand(cmd DeviceClassCommand) error
- func (this *Publisher) PublishDeviceClassDelete(id string) error
- func (this *Publisher) PublishDeviceCommand(cmd DeviceCommand) error
- func (this *Publisher) PublishDeviceDelete(id string) error
- func (this *Publisher) PublishDeviceGroup(group models.DeviceGroup) (err error)
- func (this *Publisher) PublishDeviceGroupCommand(cmd DeviceGroupCommand) error
- func (this *Publisher) PublishDeviceGroupDelete(id string) error
- func (this *Publisher) PublishDeviceType(device models.DeviceType) (err error)
- func (this *Publisher) PublishDeviceTypeCommand(cmd DeviceTypeCommand) error
- func (this *Publisher) PublishDeviceTypeDelete(id string) error
- func (this *Publisher) PublishFunction(function models.Function) (err error)
- func (this *Publisher) PublishFunctionCommand(cmd FunctionCommand) error
- func (this *Publisher) PublishFunctionDelete(id string) error
- func (this *Publisher) PublishHub(hub models.Hub) (err error)
- func (this *Publisher) PublishHubCommand(cmd HubCommand) error
- func (this *Publisher) PublishHubDelete(id string) error
- func (this *Publisher) PublishLocation(Location models.Location) (err error)
- func (this *Publisher) PublishLocationCommand(cmd LocationCommand) error
- func (this *Publisher) PublishLocationDelete(id string) error
- func (this *Publisher) PublishProtocol(protocol models.Protocol) (err error)
- func (this *Publisher) PublishProtocolCommand(cmd ProtocolCommand) error
- func (this *Publisher) PublishProtocolDelete(id string) error
- type Void
- func (this Void) PublishAspect(device models.Aspect) (err error)
- func (this Void) PublishAspectDelete(id string) error
- func (this Void) PublishCharacteristic(characteristic models.Characteristic) (err error)
- func (this Void) PublishCharacteristicDelete(id string) error
- func (this Void) PublishConcept(concept models.Concept) (err error)
- func (this Void) PublishConceptDelete(id string) error
- func (this Void) PublishDevice(device models.Device) (err error)
- func (this Void) PublishDeviceClass(device models.DeviceClass) (err error)
- func (this Void) PublishDeviceClassDelete(id string) error
- func (this Void) PublishDeviceDelete(id string) error
- func (this Void) PublishDeviceGroup(device models.DeviceGroup) (err error)
- func (this Void) PublishDeviceGroupDelete(id string) error
- func (this Void) PublishDeviceType(device models.DeviceType) (err error)
- func (this Void) PublishDeviceTypeDelete(id string) error
- func (this Void) PublishFunction(device models.Function) (err error)
- func (this Void) PublishFunctionDelete(id string) error
- func (this Void) PublishHub(hub models.Hub) (err error)
- func (this Void) PublishHubDelete(id string) error
- func (this Void) PublishLocation(device models.Location) (err error)
- func (this Void) PublishLocationDelete(id string) error
- func (this Void) PublishProtocol(device models.Protocol) (err error)
- func (this Void) PublishProtocolDelete(id string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var VoidPublisherError error = nil //errors.New("try to use void publisher")
Functions ¶
Types ¶
type AspectCommand ¶
type CharacteristicCommand ¶
type CharacteristicCommand struct { Command string `json:"command"` Id string `json:"id"` Characteristic models.Characteristic `json:"characteristic"` }
type ConceptCommand ¶
type DeviceClassCommand ¶
type DeviceClassCommand struct { Command string `json:"command"` Id string `json:"id"` DeviceClass models.DeviceClass `json:"device_class"` }
type DeviceCommand ¶
type DeviceGroupCommand ¶
type DeviceGroupCommand struct { Command string `json:"command"` Id string `json:"id"` DeviceGroup models.DeviceGroup `json:"device_group"` }
type DeviceTypeCommand ¶
type DeviceTypeCommand struct { Command string `json:"command"` Id string `json:"id"` DeviceType models.DeviceType `json:"device_type"` }
type FunctionCommand ¶
type HubCommand ¶
type KeySeparationBalancer ¶
type KeySeparationBalancer struct { SubBalancer kafka.Balancer Seperator string }
func (*KeySeparationBalancer) Balance ¶
func (this *KeySeparationBalancer) Balance(msg kafka.Message, partitions ...int) (partition int)
type LocationCommand ¶
type ProtocolCommand ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (*Publisher) PublishAspect ¶
func (*Publisher) PublishAspectCommand ¶
func (this *Publisher) PublishAspectCommand(cmd AspectCommand) error
func (*Publisher) PublishAspectDelete ¶
func (*Publisher) PublishCharacteristic ¶
func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic) (err error)
func (*Publisher) PublishCharacteristicCommand ¶
func (this *Publisher) PublishCharacteristicCommand(cmd CharacteristicCommand) error
func (*Publisher) PublishCharacteristicDelete ¶
func (*Publisher) PublishConcept ¶
func (*Publisher) PublishConceptCommand ¶
func (this *Publisher) PublishConceptCommand(cmd ConceptCommand) error
func (*Publisher) PublishConceptDelete ¶
func (*Publisher) PublishDevice ¶
func (*Publisher) PublishDeviceClass ¶
func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass) (err error)
func (*Publisher) PublishDeviceClassCommand ¶
func (this *Publisher) PublishDeviceClassCommand(cmd DeviceClassCommand) error
func (*Publisher) PublishDeviceClassDelete ¶
func (*Publisher) PublishDeviceCommand ¶
func (this *Publisher) PublishDeviceCommand(cmd DeviceCommand) error
func (*Publisher) PublishDeviceDelete ¶
func (*Publisher) PublishDeviceGroup ¶
func (this *Publisher) PublishDeviceGroup(group models.DeviceGroup) (err error)
func (*Publisher) PublishDeviceGroupCommand ¶
func (this *Publisher) PublishDeviceGroupCommand(cmd DeviceGroupCommand) error
func (*Publisher) PublishDeviceGroupDelete ¶
func (*Publisher) PublishDeviceType ¶
func (this *Publisher) PublishDeviceType(device models.DeviceType) (err error)
func (*Publisher) PublishDeviceTypeCommand ¶
func (this *Publisher) PublishDeviceTypeCommand(cmd DeviceTypeCommand) error
func (*Publisher) PublishDeviceTypeDelete ¶
func (*Publisher) PublishFunction ¶
func (*Publisher) PublishFunctionCommand ¶
func (this *Publisher) PublishFunctionCommand(cmd FunctionCommand) error
func (*Publisher) PublishFunctionDelete ¶
func (*Publisher) PublishHubCommand ¶
func (this *Publisher) PublishHubCommand(cmd HubCommand) error
func (*Publisher) PublishHubDelete ¶
func (*Publisher) PublishLocation ¶
func (*Publisher) PublishLocationCommand ¶
func (this *Publisher) PublishLocationCommand(cmd LocationCommand) error
func (*Publisher) PublishLocationDelete ¶
func (*Publisher) PublishProtocol ¶
func (*Publisher) PublishProtocolCommand ¶
func (this *Publisher) PublishProtocolCommand(cmd ProtocolCommand) error
func (*Publisher) PublishProtocolDelete ¶
type Void ¶
type Void struct{}
func (Void) PublishAspectDelete ¶
func (Void) PublishCharacteristic ¶
func (this Void) PublishCharacteristic(characteristic models.Characteristic) (err error)
func (Void) PublishCharacteristicDelete ¶
func (Void) PublishConceptDelete ¶
func (Void) PublishDeviceClass ¶
func (this Void) PublishDeviceClass(device models.DeviceClass) (err error)
func (Void) PublishDeviceClassDelete ¶
func (Void) PublishDeviceDelete ¶
func (Void) PublishDeviceGroup ¶
func (this Void) PublishDeviceGroup(device models.DeviceGroup) (err error)
func (Void) PublishDeviceGroupDelete ¶
func (Void) PublishDeviceType ¶
func (this Void) PublishDeviceType(device models.DeviceType) (err error)
func (Void) PublishDeviceTypeDelete ¶
func (Void) PublishFunctionDelete ¶
func (Void) PublishHubDelete ¶
func (Void) PublishLocationDelete ¶
func (Void) PublishProtocolDelete ¶
Click to show internal directories.
Click to hide internal directories.