Documentation ¶
Index ¶
- Constants
- func GetPropertyElement(td wotTD.ThingDescription, device thingDescription.Device, endpoint string, ...) (wotTD.PropertyElement, bool)
- func MakeConfig(t *testing.T) service.Config
- func NewBridgeService(t *testing.T, opts ...service.Option) *service.Service
- func NewBridgedDevice(t *testing.T, s *service.Service, id string, ...) service.Device
- func NewBridgedDeviceWithConfig(t *testing.T, s *service.Service, cfg device.Config, opts ...device.Option) service.Device
- func NewBridgedDeviceWithThingDescription(t *testing.T, s *service.Service, id string, ...) service.Device
- func RunBridgeService(s *service.Service) func() error
- func ThingDescription(cloudEnabled, credentialEnabled bool) (wotTD.ThingDescription, error)
Constants ¶
View Source
const ( BRIDGE_SERVICE_PIID = "f47ac10b-58cc-4372-a567-0e02b2c3d479" BRIDGE_DEVICE_HOST = "127.0.0.1:0" // 0 means random port BRIDGE_DEVICE_HOST_IPv6 = "[::1]:0" // 0 means random port )
Variables ¶
This section is empty.
Functions ¶
func GetPropertyElement ¶ added in v2.5.0
func GetPropertyElement(td wotTD.ThingDescription, device thingDescription.Device, endpoint string, resourceHref string, resource thingDescription.Resource) (wotTD.PropertyElement, bool)
func NewBridgeService ¶
func NewBridgedDevice ¶
func NewBridgedDeviceWithThingDescription ¶ added in v2.5.0
func RunBridgeService ¶
func ThingDescription ¶ added in v2.5.0
func ThingDescription(cloudEnabled, credentialEnabled bool) (wotTD.ThingDescription, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.