Documentation ¶
Index ¶
- Variables
- func NewTestSecureClient() (*client.Client, error)
- func NewTestSecureClientWithBridgeSupport() (*client.Client, error)
- func NewTestSecureClientWithGeneratedCertificate() (*client.Client, error)
- func NewTestSetupSecureClient(ca, mfgCA []*x509.Certificate, mfgCert tls.Certificate) client.ApplicationCallback
- type MockDeviceResourcesObservationHandler
- func (h *MockDeviceResourcesObservationHandler) Error(err error)
- func (h *MockDeviceResourcesObservationHandler) Handle(_ context.Context, body schema.ResourceLinks)
- func (h *MockDeviceResourcesObservationHandler) OnClose()
- func (h *MockDeviceResourcesObservationHandler) WaitForClose(ctx context.Context) error
- func (h *MockDeviceResourcesObservationHandler) WaitForNotification(ctx context.Context) (schema.ResourceLinks, error)
- type MockResourceObservationHandler
- func (h *MockResourceObservationHandler) Error(err error)
- func (h *MockResourceObservationHandler) Handle(_ context.Context, body coap.DecodeFunc)
- func (h *MockResourceObservationHandler) OnClose()
- func (h *MockResourceObservationHandler) WaitForClose(ctx context.Context) error
- func (h *MockResourceObservationHandler) WaitForNotification(ctx context.Context) (coap.DecodeFunc, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CertIdentity = "00000000-0000-0000-0000-000000000001"
Functions ¶
func NewTestSecureClient ¶
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 (h *MockDeviceResourcesObservationHandler) Error(err error)
func (*MockDeviceResourcesObservationHandler) Handle ¶
func (h *MockDeviceResourcesObservationHandler) Handle(_ context.Context, body schema.ResourceLinks)
func (*MockDeviceResourcesObservationHandler) OnClose ¶
func (h *MockDeviceResourcesObservationHandler) OnClose()
func (*MockDeviceResourcesObservationHandler) WaitForClose ¶
func (h *MockDeviceResourcesObservationHandler) WaitForClose(ctx context.Context) error
func (*MockDeviceResourcesObservationHandler) WaitForNotification ¶
func (h *MockDeviceResourcesObservationHandler) WaitForNotification(ctx context.Context) (schema.ResourceLinks, error)
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 (h *MockResourceObservationHandler) Handle(_ context.Context, body coap.DecodeFunc)
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)
Click to show internal directories.
Click to hide internal directories.