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 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 WithResourceId(resourceID string) func(values map[string]string)
- type ProtobufMarshaler
- type ProtobufUnmarshaler
Constants ¶
View Source
const DeviceIDKey = "deviceId"
View Source
const Devices = "devices"
View Source
const PlgdOwnersOwnerDevices = isEvents.PlgdOwnersOwner + "." + Devices
View Source
const PlgdOwnersOwnerDevicesDevice = PlgdOwnersOwnerDevices + ".{" + DeviceIDKey + "}"
View Source
const PlgdOwnersOwnerDevicesDeviceMetadata = PlgdOwnersOwnerDevicesDevice + ".metadata"
View Source
const PlgdOwnersOwnerDevicesDeviceMetadataEvent = PlgdOwnersOwnerDevicesDeviceMetadata + ".{" + isEvents.EventTypeKey + "}"
View Source
const PlgdOwnersOwnerDevicesDeviceResourceLinks = PlgdOwnersOwnerDevicesDevice + ".resource-links"
View Source
const PlgdOwnersOwnerDevicesDeviceResourceLinksEvent = PlgdOwnersOwnerDevicesDeviceResourceLinks + ".{" + isEvents.EventTypeKey + "}"
View Source
const PlgdOwnersOwnerDevicesDeviceResources = PlgdOwnersOwnerDevicesDevice + ".resources"
View Source
const PlgdOwnersOwnerDevicesDeviceResourcesResource = PlgdOwnersOwnerDevicesDeviceResources + ".{" + ResourceIDKey + "}"
View Source
const PlgdOwnersOwnerDevicesDeviceResourcesResourceEvent = PlgdOwnersOwnerDevicesDeviceResourcesResource + ".{" + isEvents.EventTypeKey + "}"
View Source
const ResourceIDKey = "resourceId"
Variables ¶
This section is empty.
Functions ¶
func GetDeviceSubject ¶
func GetResourceEventSubject ¶
func GetResourceEventSubject(owner string, resourceID *commands.ResourceId, eventType string) []string
func WithDeviceID ¶
func WithResourceId ¶
Types ¶
type ProtobufMarshaler ¶
type ProtobufUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.