test

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 bridgeDeviceTD.Device, endpoint string, resourceHref string, resource bridgeDeviceTD.Resource, contentType message.MediaType) (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(deviceID uuid.UUID, baseURL string, 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