Documentation ¶
Index ¶
- func GetKafkaWriter(broker string, topic string, debug bool) (writer *kafka.Writer, err error)
- type AspectCommand
- type DeviceCommand
- type HubCommand
- type KeySeparationBalancer
- 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) PublishDevice(device models.Device, userId string) error
- func (this *Producer) PublishDeviceCommand(cmd DeviceCommand) error
- func (this *Producer) PublishDeviceDelete(id string, userId string) error
- func (this *Producer) PublishDeviceRights(deviceId string, userId string, rights model.ResourceRights) (err error)
- func (this *Producer) PublishHub(hub models.Hub, userId string) (err error)
- func (this *Producer) PublishHubCommand(cmd HubCommand) error
- func (this *Producer) SendDone(msg donewait.DoneMsg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AspectCommand ¶
type DeviceCommand ¶
type HubCommand ¶
type KeySeparationBalancer ¶ added in v0.0.11
type KeySeparationBalancer struct { SubBalancer kafka.Balancer Seperator string }
func (*KeySeparationBalancer) Balance ¶ added in v0.0.11
func (this *KeySeparationBalancer) Balance(msg kafka.Message, partitions ...int) (partition int)
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) PublishDevice ¶ added in v0.0.18
func (*Producer) PublishDeviceCommand ¶
func (this *Producer) PublishDeviceCommand(cmd DeviceCommand) error
func (*Producer) PublishDeviceDelete ¶
func (*Producer) PublishDeviceRights ¶ added in v0.0.18
func (*Producer) PublishHub ¶
func (*Producer) PublishHubCommand ¶
func (this *Producer) PublishHubCommand(cmd HubCommand) error
Click to show internal directories.
Click to hide internal directories.