Documentation ¶
Index ¶
- func GetKafkaWriter(broker string, topic string, debug bool) (writer *kafka.Writer, err error)
- type AspectCommand
- type DeviceCommand
- type HubCommand
- type Producer
- func (this *Producer) PublishAspectCommand(cmd AspectCommand) error
- func (this *Producer) PublishAspectDelete(id string, userId string) error
- func (this *Producer) PublishAspectUpdate(aspect models.Aspect, userId string) error
- func (this *Producer) PublishDeviceCommand(cmd DeviceCommand) error
- func (this *Producer) PublishDeviceDelete(id string, userId string) error
- func (this *Producer) PublishHub(hub models.Hub) (err error)
- func (this *Producer) PublishHubCommand(cmd HubCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AspectCommand ¶
type DeviceCommand ¶
type HubCommand ¶
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func (*Producer) PublishAspectCommand ¶
func (this *Producer) PublishAspectCommand(cmd AspectCommand) error
func (*Producer) PublishAspectDelete ¶
func (*Producer) PublishAspectUpdate ¶
func (*Producer) PublishDeviceCommand ¶
func (this *Producer) PublishDeviceCommand(cmd DeviceCommand) error
func (*Producer) PublishDeviceDelete ¶
func (*Producer) PublishHubCommand ¶
func (this *Producer) PublishHubCommand(cmd HubCommand) error
Click to show internal directories.
Click to hide internal directories.