mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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

type GatewayConnector struct {
	mock.Mock
}

GatewayConnector is an autogenerated mock type for the GatewayConnector type

func NewGatewayConnector

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

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

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

func (*GatewayConnector) Close

func (_m *GatewayConnector) Close() error

Close provides a mock function with given fields:

func (*GatewayConnector) NewAuthHeader

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

NewAuthHeader provides a mock function with given fields: _a0

func (*GatewayConnector) SendToGateway

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

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