Documentation ¶
Index ¶
- Constants
- Variables
- func GetOCFResourcePropertyElement(resourceHref string) (thingDescription.PropertyElement, bool)
- func GetOCFThingDescription() thingDescription.ThingDescription
- func PatchCloudResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, ...) (thingDescription.PropertyElement, error)
- func PatchCredentialResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, ...) (thingDescription.PropertyElement, error)
- func PatchDeviceResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, ...) (thingDescription.PropertyElement, error)
- func PatchMaintenanceResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, ...) (thingDescription.PropertyElement, error)
- type GetThingDescription
- type RegisterSubscription
- type Resource
Constants ¶
View Source
const ( ResourceURI = "/.well-known/wot" ResourceType = "wot.thing" )
Variables ¶
View Source
var MessageTypeTDJson = message.MediaType(432) ///< application/td+json
Functions ¶
func GetOCFResourcePropertyElement ¶
func GetOCFResourcePropertyElement(resourceHref string) (thingDescription.PropertyElement, bool)
func GetOCFThingDescription ¶
func GetOCFThingDescription() thingDescription.ThingDescription
func PatchCloudResourcePropertyElement ¶ added in v2.5.1
func PatchCloudResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, contentType message.MediaType, createForms bridgeTD.CreateFormsFunc) (thingDescription.PropertyElement, error)
func PatchCredentialResourcePropertyElement ¶ added in v2.5.1
func PatchCredentialResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, contentType message.MediaType, createForms bridgeTD.CreateFormsFunc) (thingDescription.PropertyElement, error)
func PatchDeviceResourcePropertyElement ¶ added in v2.5.1
func PatchDeviceResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, contentType message.MediaType, deviceType string, createForms bridgeTD.CreateFormsFunc) (thingDescription.PropertyElement, error)
func PatchMaintenanceResourcePropertyElement ¶ added in v2.5.1
func PatchMaintenanceResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, baseURL string, contentType message.MediaType, createForms bridgeTD.CreateFormsFunc) (thingDescription.PropertyElement, error)
Types ¶
type GetThingDescription ¶
type GetThingDescription func(ctx context.Context, endpoints schema.Endpoints) *thingDescription.ThingDescription
type RegisterSubscription ¶
type RegisterSubscription func(subscription func(td *thingDescription.ThingDescription, closed bool)) func()
type Resource ¶
func New ¶
func New(uri string, onGetThingDescription GetThingDescription, onRegisterSubscription RegisterSubscription) *Resource
func (*Resource) CreateSubscription ¶
Click to show internal directories.
Click to hide internal directories.