Documentation ¶
Index ¶
- Constants
- func GetDeviceMetadataEventSubject(owner, deviceID, eventType string) []string
- func GetDeviceSubject(owner, deviceID string) []string
- func GetResourceEventSubjects(owner string, resourceID *commands.ResourceId, eventType string, ...) []string
- func GetSubjectHrefID(href 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)
- func WithLeadResourceType(leadResourceType string) func(values map[string]string)
- type ProtobufMarshaler
- type ProtobufUnmarshaler
Constants ¶
View Source
const ( DeviceIDKey = "deviceId" HrefIDKey = "hrefId" LeadResourceTypeKey = "leadResourceType" LeadResourcePrefix = "leadrt" )
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 + "}" PlgdOwnersOwnerDevicesDeviceResourcesResourceEventLeadResourceType = PlgdOwnersOwnerDevicesDeviceResourcesResourceEvent + "." + LeadResourcePrefix + ".{" + LeadResourceTypeKey + "}" )
Variables ¶
This section is empty.
Functions ¶
func GetDeviceSubject ¶
func GetResourceEventSubjects ¶ added in v2.22.0
func GetSubjectHrefID ¶ added in v2.22.0
func WithDeviceID ¶
func WithHrefId ¶ added in v2.8.0
func WithLeadResourceType ¶ added in v2.22.0
Types ¶
type ProtobufMarshaler ¶
type ProtobufUnmarshaler ¶
Click to show internal directories.
Click to hide internal directories.