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" ResourceIDKey = "resourceId" )
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 + ".{" + ResourceIDKey + "}" 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 WithResourceId ¶
Types ¶
type ProtobufMarshaler ¶
type ProtobufUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.