Documentation ¶
Index ¶
- Variables
- type DeviceRepo
- type PermSearch
- type Publisher
- func (this *Publisher) PublishAspect(aspect models.Aspect, userID string) (err error)
- func (this *Publisher) PublishAspectDelete(id string, userId string) error
- func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic, userID string) (err error)
- func (this *Publisher) PublishCharacteristicDelete(id string, userID string) error
- func (this *Publisher) PublishConcept(concept models.Concept, userID string) (err error)
- func (this *Publisher) PublishConceptDelete(id string, userID string) error
- func (this *Publisher) PublishDevice(device models.Device, userId string) (err error)
- func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass, userID string) (err error)
- func (this *Publisher) PublishDeviceClassDelete(id string, userId string) error
- func (this *Publisher) PublishDeviceDelete(id string, userId string) error
- func (this *Publisher) PublishDeviceGroup(group models.DeviceGroup, userID string) (err error)
- func (this *Publisher) PublishDeviceGroupDelete(id string, userID string) error
- func (this *Publisher) PublishDeviceType(device models.DeviceType, userId string) (err error)
- func (this *Publisher) PublishDeviceTypeDelete(id string, userId string) error
- func (this *Publisher) PublishFunction(function models.Function, userID string) (err error)
- func (this *Publisher) PublishFunctionDelete(id string, userId string) error
- func (this *Publisher) PublishHub(hub models.Hub, userId string) (err error)
- func (this *Publisher) PublishHubDelete(id string, userId string) error
- func (this *Publisher) PublishLocation(location models.Location, userId string) (err error)
- func (this *Publisher) PublishLocationDelete(id string, userId string) error
- func (this *Publisher) PublishProtocol(protocol models.Protocol, userId string) (err error)
- func (this *Publisher) PublishProtocolDelete(id string, userId string) error
- func (this *Publisher) PublishRights(kind string, id string, element permmodel.ResourceRightsBase) error
- func (this *Publisher) Subscribe(topic string, f func(msg []byte))
Constants ¶
This section is empty.
Variables ¶
View Source
var AspectTopic = "aspcet"
View Source
var CharacteristicTopic = "characteristics"
View Source
var ConceptTopic = "concepts"
View Source
var DeviceClassTopic = "function"
View Source
var DeviceGroupTopic = "devicegroups"
View Source
var DeviceTopic = "device"
View Source
var DtTopic = "devicetype"
View Source
var FunctionTopic = "function"
View Source
var HubTopic = "hub"
View Source
var LocationTopic = "locations"
View Source
var ProtocolTopic = "protocol"
Functions ¶
This section is empty.
Types ¶
type DeviceRepo ¶
type DeviceRepo struct {
// contains filtered or unexported fields
}
func NewDeviceRepo ¶
func NewDeviceRepo(producer interface { Subscribe(topic string, f func(msg []byte)) }) *DeviceRepo
func (*DeviceRepo) Stop ¶
func (this *DeviceRepo) Stop()
func (*DeviceRepo) Url ¶
func (this *DeviceRepo) Url() string
type PermSearch ¶
type PermSearch struct {
// contains filtered or unexported fields
}
func NewPermSearch ¶
func NewPermSearch() *PermSearch
func (*PermSearch) Stop ¶
func (this *PermSearch) Stop()
func (*PermSearch) Url ¶
func (this *PermSearch) Url() string
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher() *Publisher
func (*Publisher) PublishAspect ¶
func (*Publisher) PublishAspectDelete ¶
func (*Publisher) PublishCharacteristic ¶
func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic, userID string) (err error)
func (*Publisher) PublishCharacteristicDelete ¶
func (*Publisher) PublishConcept ¶
func (*Publisher) PublishConceptDelete ¶
func (*Publisher) PublishDevice ¶
func (*Publisher) PublishDeviceClass ¶
func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass, userID string) (err error)
func (*Publisher) PublishDeviceClassDelete ¶
func (*Publisher) PublishDeviceDelete ¶
func (*Publisher) PublishDeviceGroup ¶
func (this *Publisher) PublishDeviceGroup(group models.DeviceGroup, userID string) (err error)
func (*Publisher) PublishDeviceGroupDelete ¶
func (*Publisher) PublishDeviceType ¶
func (this *Publisher) PublishDeviceType(device models.DeviceType, userId string) (err error)
func (*Publisher) PublishDeviceTypeDelete ¶
func (*Publisher) PublishFunction ¶
func (*Publisher) PublishFunctionDelete ¶
func (*Publisher) PublishHub ¶
func (*Publisher) PublishHubDelete ¶
func (*Publisher) PublishLocation ¶
func (*Publisher) PublishLocationDelete ¶
func (*Publisher) PublishProtocol ¶
func (*Publisher) PublishProtocolDelete ¶
func (*Publisher) PublishRights ¶
Click to show internal directories.
Click to hide internal directories.