client

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertIdentity = "00000000-0000-0000-0000-000000000001"

Functions

func NewTestSecureClient

func NewTestSecureClient() (*client.Client, error)

func NewTestSecureClientWithBridgeSupport

func NewTestSecureClientWithBridgeSupport() (*client.Client, error)

func NewTestSecureClientWithGeneratedCertificate

func NewTestSecureClientWithGeneratedCertificate() (*client.Client, error)

func NewTestSetupSecureClient

func NewTestSetupSecureClient(ca, mfgCA []*x509.Certificate, mfgCert tls.Certificate) client.ApplicationCallback

Types

type MockDeviceResourcesObservationHandler

type MockDeviceResourcesObservationHandler struct {
	// contains filtered or unexported fields
}

func MakeMockDeviceResourcesObservationHandler

func MakeMockDeviceResourcesObservationHandler() *MockDeviceResourcesObservationHandler

func (*MockDeviceResourcesObservationHandler) Error

func (*MockDeviceResourcesObservationHandler) Handle

func (*MockDeviceResourcesObservationHandler) OnClose

func (*MockDeviceResourcesObservationHandler) WaitForClose

func (*MockDeviceResourcesObservationHandler) WaitForNotification

type MockResourceObservationHandler

type MockResourceObservationHandler struct {
	Res   chan coap.DecodeFunc
	Close chan struct{}
}

func MakeMockResourceObservationHandler

func MakeMockResourceObservationHandler() *MockResourceObservationHandler

func (*MockResourceObservationHandler) Error

func (h *MockResourceObservationHandler) Error(err error)

func (*MockResourceObservationHandler) Handle

func (*MockResourceObservationHandler) OnClose

func (h *MockResourceObservationHandler) OnClose()

func (*MockResourceObservationHandler) WaitForClose

func (h *MockResourceObservationHandler) WaitForClose(ctx context.Context) error

func (*MockResourceObservationHandler) WaitForNotification

func (h *MockResourceObservationHandler) WaitForNotification(ctx context.Context) (coap.DecodeFunc, error)

Jump to

Keyboard shortcuts

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