Documentation ¶
Index ¶
- func GetBroker(zk string) (brokers []string, err error)
- type Device
- type DeviceCommand
- type Location
- type LocationCommand
- type Publisher
- func (this *Publisher) PublishDevice(device Device, userId string) (err error)
- func (this *Publisher) PublishDeviceCommand(cmd DeviceCommand) error
- func (this *Publisher) PublishDeviceDelete(id string, userId string) error
- func (this *Publisher) PublishLocation(Location Location, userId string) (err error)
- func (this *Publisher) PublishLocationCommand(cmd LocationCommand) error
- func (this *Publisher) PublishLocationDelete(id string, userId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceCommand ¶
type LocationCommand ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func (*Publisher) PublishDevice ¶
func (*Publisher) PublishDeviceCommand ¶
func (this *Publisher) PublishDeviceCommand(cmd DeviceCommand) error
func (*Publisher) PublishDeviceDelete ¶
func (*Publisher) PublishLocation ¶
func (*Publisher) PublishLocationCommand ¶
func (this *Publisher) PublishLocationCommand(cmd LocationCommand) error
Click to show internal directories.
Click to hide internal directories.