common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CONTROLLING_FUNCTION_PREFIX = URN_PREFIX + "controlling-function:"
View Source
const DEVICE_PREFIX = URN_PREFIX + "device:"
View Source
const URN_PREFIX = "urn:infai:ses:"

Variables

View Source
var NoSubscriptionExpected error = errors.New("no subscription expected")

Functions

func GetHandledServices

func GetHandledServices(services []model.Service, handledProtocols map[string]bool) (result []model.Service)

func IsControllingFunctionId

func IsControllingFunctionId(id string) bool

func UsesControllingFunction

func UsesControllingFunction(service model.Service) bool

Types

type DeviceTypeProvider

type DeviceTypeProvider interface {
	GetDeviceType(deviceTypeId string) (dt models.DeviceType, err error)
}

type TopicGenerator

type TopicGenerator = func(config configuration.Config, deviceTypeProvider DeviceTypeProvider, device model.PermDevice) (topicCandidates []string, err error)

Jump to

Keyboard shortcuts

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