test

package
v2.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 MakeConfig

func MakeConfig(t *testing.T) service.Config

func NewBridgeService

func NewBridgeService(t *testing.T, opts ...service.Option) *service.Service

func NewBridgedDevice

func NewBridgedDevice(t *testing.T, s *service.Service, id string, cloudEnabled, credentialEnabled, thingDescriptionEnabled bool, opts ...device.Option) service.Device

func NewBridgedDeviceWithConfig

func NewBridgedDeviceWithConfig(t *testing.T, s *service.Service, cfg device.Config, opts ...device.Option) service.Device

func NewBridgedDeviceWithThingDescription added in v2.5.0

func NewBridgedDeviceWithThingDescription(t *testing.T, s *service.Service, id string, cloudEnabled, credentialEnabled bool, td *wotTD.ThingDescription, opts ...device.Option) service.Device

func RunBridgeService

func RunBridgeService(s *service.Service) func() error

func ThingDescription added in v2.5.0

func ThingDescription(cloudEnabled, credentialEnabled bool) (wotTD.ThingDescription, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL