servicemocks

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 New

func New(cin config.Config) (publisher *Publisher, cout config.Config, close func())

func NewPublisher

func NewPublisher() *Publisher

func (*Publisher) PublishAspect

func (this *Publisher) PublishAspect(aspect models.Aspect, userID string) (err error)

func (*Publisher) PublishAspectDelete

func (this *Publisher) PublishAspectDelete(id string, userId string) error

func (*Publisher) PublishCharacteristic

func (this *Publisher) PublishCharacteristic(characteristic models.Characteristic, userID string) (err error)

func (*Publisher) PublishCharacteristicDelete

func (this *Publisher) PublishCharacteristicDelete(id string, userID string) error

func (*Publisher) PublishConcept

func (this *Publisher) PublishConcept(concept models.Concept, userID string) (err error)

func (*Publisher) PublishConceptDelete

func (this *Publisher) PublishConceptDelete(id string, userID string) error

func (*Publisher) PublishDevice

func (this *Publisher) PublishDevice(device models.Device, userId string) (err error)

func (*Publisher) PublishDeviceClass

func (this *Publisher) PublishDeviceClass(deviceClass models.DeviceClass, userID string) (err error)

func (*Publisher) PublishDeviceClassDelete

func (this *Publisher) PublishDeviceClassDelete(id string, userId string) error

func (*Publisher) PublishDeviceDelete

func (this *Publisher) PublishDeviceDelete(id string, userId string) error

func (*Publisher) PublishDeviceGroup

func (this *Publisher) PublishDeviceGroup(group models.DeviceGroup, userID string) (err error)

func (*Publisher) PublishDeviceGroupDelete

func (this *Publisher) PublishDeviceGroupDelete(id string, userID string) error

func (*Publisher) PublishDeviceType

func (this *Publisher) PublishDeviceType(device models.DeviceType, userId string) (err error)

func (*Publisher) PublishDeviceTypeDelete

func (this *Publisher) PublishDeviceTypeDelete(id string, userId string) error

func (*Publisher) PublishFunction

func (this *Publisher) PublishFunction(function models.Function, userID string) (err error)

func (*Publisher) PublishFunctionDelete

func (this *Publisher) PublishFunctionDelete(id string, userId string) error

func (*Publisher) PublishHub

func (this *Publisher) PublishHub(hub models.Hub, userId string) (err error)

func (*Publisher) PublishHubDelete

func (this *Publisher) PublishHubDelete(id string, userId string) error

func (*Publisher) PublishLocation

func (this *Publisher) PublishLocation(location models.Location, userId string) (err error)

func (*Publisher) PublishLocationDelete

func (this *Publisher) PublishLocationDelete(id string, userId string) error

func (*Publisher) PublishProtocol

func (this *Publisher) PublishProtocol(protocol models.Protocol, userId string) (err error)

func (*Publisher) PublishProtocolDelete

func (this *Publisher) PublishProtocolDelete(id string, userId string) error

func (*Publisher) PublishRights

func (this *Publisher) PublishRights(kind string, id string, element permmodel.ResourceRightsBase) error

func (*Publisher) Subscribe

func (this *Publisher) Subscribe(topic string, f func(msg []byte))

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL