Documentation ¶
Index ¶
- Constants
- func GetDeviceMetadataEventSubject(owner, deviceID, eventType string) []string
- func GetDeviceSubject(owner, deviceID string) []string
- func GetPublishSubject(owner string, event eventbus.Event) []string
- func GetResourceEventSubject(owner string, resourceID *commands.ResourceId, eventType string) []string
- func HrefToID(href string) uuid.UUID
- func Marshal(v interface{}) ([]byte, error)
- func TimeNowMs() uint64
- func Unmarshal(b []byte, v interface{}) error
- func WithDeviceID(deviceID string) func(values map[string]string)
- func WithHrefId(hrefId string) func(values map[string]string)
- type ProtobufMarshaler
- type ProtobufUnmarshaler
Constants ¶
View Source
const ( DeviceIDKey = "deviceId" HrefIDKey = "hrefId" )
View Source
const ( Devices = "devices" PlgdOwnersOwnerDevices = isEvents.PlgdOwnersOwner + "." + Devices PlgdOwnersOwnerDevicesDevice = PlgdOwnersOwnerDevices + ".{" + DeviceIDKey + "}" PlgdOwnersOwnerDevicesDeviceResourceLinks = PlgdOwnersOwnerDevicesDevice + ".resource-links" PlgdOwnersOwnerDevicesDeviceResourceLinksEvent = PlgdOwnersOwnerDevicesDeviceResourceLinks + ".{" + isEvents.EventTypeKey + "}" PlgdOwnersOwnerDevicesDeviceMetadata = PlgdOwnersOwnerDevicesDevice + ".metadata" PlgdOwnersOwnerDevicesDeviceMetadataEvent = PlgdOwnersOwnerDevicesDeviceMetadata + ".{" + isEvents.EventTypeKey + "}" PlgdOwnersOwnerDevicesDeviceResources = PlgdOwnersOwnerDevicesDevice + ".resources" PlgdOwnersOwnerDevicesDeviceResourcesResource = PlgdOwnersOwnerDevicesDeviceResources + ".{" + HrefIDKey + "}" PlgdOwnersOwnerDevicesDeviceResourcesResourceEvent = PlgdOwnersOwnerDevicesDeviceResourcesResource + ".{" + isEvents.EventTypeKey + "}" )
Variables ¶
This section is empty.
Functions ¶
func GetDeviceSubject ¶
func GetResourceEventSubject ¶
func GetResourceEventSubject(owner string, resourceID *commands.ResourceId, eventType string) []string
func WithDeviceID ¶
func WithHrefId ¶ added in v2.8.0
Types ¶
type ProtobufMarshaler ¶
type ProtobufUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.