Documentation ¶
Index ¶
- type GatewayConnector
- func (_m *GatewayConnector) ChallengeResponse(_a0 *url.URL, challenge []byte) ([]byte, error)
- func (_m *GatewayConnector) Close() error
- func (_m *GatewayConnector) NewAuthHeader(_a0 *url.URL) ([]byte, error)
- func (_m *GatewayConnector) SendToGateway(ctx context.Context, gatewayId string, msg *api.Message) error
- func (_m *GatewayConnector) Start(_a0 context.Context) error
- type GatewayConnectorHandler
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayConnector ¶ added in v2.4.0
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
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
type GatewayConnectorHandler ¶
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