mocks

package
v2.14.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayConnector added in v2.4.0

type GatewayConnector struct {
	mock.Mock
}

GatewayConnector is an autogenerated mock type for the GatewayConnector type

func NewGatewayConnector added in v2.4.0

func NewGatewayConnector(t interface {
	mock.TestingT
	Cleanup(func())
}) *GatewayConnector

NewGatewayConnector creates a new instance of GatewayConnector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GatewayConnector) ChallengeResponse added in v2.4.0

func (_m *GatewayConnector) ChallengeResponse(_a0 *url.URL, challenge []byte) ([]byte, error)

ChallengeResponse provides a mock function with given fields: _a0, challenge

func (*GatewayConnector) Close added in v2.4.0

func (_m *GatewayConnector) Close() error

Close provides a mock function with given fields:

func (*GatewayConnector) NewAuthHeader added in v2.4.0

func (_m *GatewayConnector) NewAuthHeader(_a0 *url.URL) ([]byte, error)

NewAuthHeader provides a mock function with given fields: _a0

func (*GatewayConnector) SendToGateway added in v2.4.0

func (_m *GatewayConnector) SendToGateway(ctx context.Context, gatewayId string, msg *api.Message) error

SendToGateway provides a mock function with given fields: ctx, gatewayId, msg

func (*GatewayConnector) Start added in v2.4.0

func (_m *GatewayConnector) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type GatewayConnectorHandler

type GatewayConnectorHandler struct {
	mock.Mock
}

GatewayConnectorHandler is an autogenerated mock type for the GatewayConnectorHandler type

func NewGatewayConnectorHandler

func NewGatewayConnectorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *GatewayConnectorHandler

NewGatewayConnectorHandler creates a new instance of GatewayConnectorHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GatewayConnectorHandler) Close

func (_m *GatewayConnectorHandler) Close() error

Close provides a mock function with given fields:

func (*GatewayConnectorHandler) HandleGatewayMessage

func (_m *GatewayConnectorHandler) HandleGatewayMessage(ctx context.Context, gatewayId string, msg *api.Message)

HandleGatewayMessage provides a mock function with given fields: ctx, gatewayId, msg

func (*GatewayConnectorHandler) Start

Start provides a mock function with given fields: _a0

type Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

NewSigner creates a new instance of Signer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Signer) Sign

func (_m *Signer) Sign(data ...[]byte) ([]byte, error)

Sign provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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