Documentation ¶
Index ¶
- type GatewayConnector
- func (_m *GatewayConnector) ChallengeResponse(_a0 *url.URL, challenge []byte) ([]byte, error)
- func (_m *GatewayConnector) Close() error
- func (_m *GatewayConnector) EXPECT() *GatewayConnector_Expecter
- 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
- func (_m *GatewayConnectorHandler) Close() error
- func (_m *GatewayConnectorHandler) EXPECT() *GatewayConnectorHandler_Expecter
- func (_m *GatewayConnectorHandler) HandleGatewayMessage(ctx context.Context, gatewayId string, msg *api.Message)
- func (_m *GatewayConnectorHandler) Start(_a0 context.Context) error
- type GatewayConnectorHandler_Close_Call
- func (_c *GatewayConnectorHandler_Close_Call) Return(_a0 error) *GatewayConnectorHandler_Close_Call
- func (_c *GatewayConnectorHandler_Close_Call) Run(run func()) *GatewayConnectorHandler_Close_Call
- func (_c *GatewayConnectorHandler_Close_Call) RunAndReturn(run func() error) *GatewayConnectorHandler_Close_Call
- type GatewayConnectorHandler_Expecter
- func (_e *GatewayConnectorHandler_Expecter) Close() *GatewayConnectorHandler_Close_Call
- func (_e *GatewayConnectorHandler_Expecter) HandleGatewayMessage(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnectorHandler_HandleGatewayMessage_Call
- func (_e *GatewayConnectorHandler_Expecter) Start(_a0 interface{}) *GatewayConnectorHandler_Start_Call
- type GatewayConnectorHandler_HandleGatewayMessage_Call
- func (_c *GatewayConnectorHandler_HandleGatewayMessage_Call) Return() *GatewayConnectorHandler_HandleGatewayMessage_Call
- func (_c *GatewayConnectorHandler_HandleGatewayMessage_Call) Run(run func(ctx context.Context, gatewayId string, msg *api.Message)) *GatewayConnectorHandler_HandleGatewayMessage_Call
- func (_c *GatewayConnectorHandler_HandleGatewayMessage_Call) RunAndReturn(run func(context.Context, string, *api.Message)) *GatewayConnectorHandler_HandleGatewayMessage_Call
- type GatewayConnectorHandler_Start_Call
- func (_c *GatewayConnectorHandler_Start_Call) Return(_a0 error) *GatewayConnectorHandler_Start_Call
- func (_c *GatewayConnectorHandler_Start_Call) Run(run func(_a0 context.Context)) *GatewayConnectorHandler_Start_Call
- func (_c *GatewayConnectorHandler_Start_Call) RunAndReturn(run func(context.Context) error) *GatewayConnectorHandler_Start_Call
- type GatewayConnector_ChallengeResponse_Call
- func (_c *GatewayConnector_ChallengeResponse_Call) Return(_a0 []byte, _a1 error) *GatewayConnector_ChallengeResponse_Call
- func (_c *GatewayConnector_ChallengeResponse_Call) Run(run func(_a0 *url.URL, challenge []byte)) *GatewayConnector_ChallengeResponse_Call
- func (_c *GatewayConnector_ChallengeResponse_Call) RunAndReturn(run func(*url.URL, []byte) ([]byte, error)) *GatewayConnector_ChallengeResponse_Call
- type GatewayConnector_Close_Call
- type GatewayConnector_Expecter
- func (_e *GatewayConnector_Expecter) ChallengeResponse(_a0 interface{}, challenge interface{}) *GatewayConnector_ChallengeResponse_Call
- func (_e *GatewayConnector_Expecter) Close() *GatewayConnector_Close_Call
- func (_e *GatewayConnector_Expecter) NewAuthHeader(_a0 interface{}) *GatewayConnector_NewAuthHeader_Call
- func (_e *GatewayConnector_Expecter) SendToGateway(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnector_SendToGateway_Call
- func (_e *GatewayConnector_Expecter) Start(_a0 interface{}) *GatewayConnector_Start_Call
- type GatewayConnector_NewAuthHeader_Call
- func (_c *GatewayConnector_NewAuthHeader_Call) Return(_a0 []byte, _a1 error) *GatewayConnector_NewAuthHeader_Call
- func (_c *GatewayConnector_NewAuthHeader_Call) Run(run func(_a0 *url.URL)) *GatewayConnector_NewAuthHeader_Call
- func (_c *GatewayConnector_NewAuthHeader_Call) RunAndReturn(run func(*url.URL) ([]byte, error)) *GatewayConnector_NewAuthHeader_Call
- type GatewayConnector_SendToGateway_Call
- func (_c *GatewayConnector_SendToGateway_Call) Return(_a0 error) *GatewayConnector_SendToGateway_Call
- func (_c *GatewayConnector_SendToGateway_Call) Run(run func(ctx context.Context, gatewayId string, msg *api.Message)) *GatewayConnector_SendToGateway_Call
- func (_c *GatewayConnector_SendToGateway_Call) RunAndReturn(run func(context.Context, string, *api.Message) error) *GatewayConnector_SendToGateway_Call
- type GatewayConnector_Start_Call
- func (_c *GatewayConnector_Start_Call) Return(_a0 error) *GatewayConnector_Start_Call
- func (_c *GatewayConnector_Start_Call) Run(run func(_a0 context.Context)) *GatewayConnector_Start_Call
- func (_c *GatewayConnector_Start_Call) RunAndReturn(run func(context.Context) error) *GatewayConnector_Start_Call
- type Signer
- type Signer_Expecter
- type Signer_Sign_Call
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) EXPECT ¶ added in v2.15.0
func (_m *GatewayConnector) EXPECT() *GatewayConnector_Expecter
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) EXPECT ¶ added in v2.15.0
func (_m *GatewayConnectorHandler) EXPECT() *GatewayConnectorHandler_Expecter
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
type GatewayConnectorHandler_Close_Call ¶ added in v2.15.0
GatewayConnectorHandler_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*GatewayConnectorHandler_Close_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Close_Call) Return(_a0 error) *GatewayConnectorHandler_Close_Call
func (*GatewayConnectorHandler_Close_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Close_Call) Run(run func()) *GatewayConnectorHandler_Close_Call
func (*GatewayConnectorHandler_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Close_Call) RunAndReturn(run func() error) *GatewayConnectorHandler_Close_Call
type GatewayConnectorHandler_Expecter ¶ added in v2.15.0
type GatewayConnectorHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*GatewayConnectorHandler_Expecter) Close ¶ added in v2.15.0
func (_e *GatewayConnectorHandler_Expecter) Close() *GatewayConnectorHandler_Close_Call
Close is a helper method to define mock.On call
func (*GatewayConnectorHandler_Expecter) HandleGatewayMessage ¶ added in v2.15.0
func (_e *GatewayConnectorHandler_Expecter) HandleGatewayMessage(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnectorHandler_HandleGatewayMessage_Call
HandleGatewayMessage is a helper method to define mock.On call
- ctx context.Context
- gatewayId string
- msg *api.Message
func (*GatewayConnectorHandler_Expecter) Start ¶ added in v2.15.0
func (_e *GatewayConnectorHandler_Expecter) Start(_a0 interface{}) *GatewayConnectorHandler_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type GatewayConnectorHandler_HandleGatewayMessage_Call ¶ added in v2.15.0
GatewayConnectorHandler_HandleGatewayMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleGatewayMessage'
func (*GatewayConnectorHandler_HandleGatewayMessage_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_HandleGatewayMessage_Call) Run(run func(ctx context.Context, gatewayId string, msg *api.Message)) *GatewayConnectorHandler_HandleGatewayMessage_Call
func (*GatewayConnectorHandler_HandleGatewayMessage_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_HandleGatewayMessage_Call) RunAndReturn(run func(context.Context, string, *api.Message)) *GatewayConnectorHandler_HandleGatewayMessage_Call
type GatewayConnectorHandler_Start_Call ¶ added in v2.15.0
GatewayConnectorHandler_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*GatewayConnectorHandler_Start_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Start_Call) Return(_a0 error) *GatewayConnectorHandler_Start_Call
func (*GatewayConnectorHandler_Start_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Start_Call) Run(run func(_a0 context.Context)) *GatewayConnectorHandler_Start_Call
func (*GatewayConnectorHandler_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnectorHandler_Start_Call) RunAndReturn(run func(context.Context) error) *GatewayConnectorHandler_Start_Call
type GatewayConnector_ChallengeResponse_Call ¶ added in v2.15.0
GatewayConnector_ChallengeResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChallengeResponse'
func (*GatewayConnector_ChallengeResponse_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnector_ChallengeResponse_Call) Return(_a0 []byte, _a1 error) *GatewayConnector_ChallengeResponse_Call
func (*GatewayConnector_ChallengeResponse_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnector_ChallengeResponse_Call) Run(run func(_a0 *url.URL, challenge []byte)) *GatewayConnector_ChallengeResponse_Call
func (*GatewayConnector_ChallengeResponse_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnector_ChallengeResponse_Call) RunAndReturn(run func(*url.URL, []byte) ([]byte, error)) *GatewayConnector_ChallengeResponse_Call
type GatewayConnector_Close_Call ¶ added in v2.15.0
GatewayConnector_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*GatewayConnector_Close_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnector_Close_Call) Return(_a0 error) *GatewayConnector_Close_Call
func (*GatewayConnector_Close_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnector_Close_Call) Run(run func()) *GatewayConnector_Close_Call
func (*GatewayConnector_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnector_Close_Call) RunAndReturn(run func() error) *GatewayConnector_Close_Call
type GatewayConnector_Expecter ¶ added in v2.15.0
type GatewayConnector_Expecter struct {
// contains filtered or unexported fields
}
func (*GatewayConnector_Expecter) ChallengeResponse ¶ added in v2.15.0
func (_e *GatewayConnector_Expecter) ChallengeResponse(_a0 interface{}, challenge interface{}) *GatewayConnector_ChallengeResponse_Call
ChallengeResponse is a helper method to define mock.On call
- _a0 *url.URL
- challenge []byte
func (*GatewayConnector_Expecter) Close ¶ added in v2.15.0
func (_e *GatewayConnector_Expecter) Close() *GatewayConnector_Close_Call
Close is a helper method to define mock.On call
func (*GatewayConnector_Expecter) NewAuthHeader ¶ added in v2.15.0
func (_e *GatewayConnector_Expecter) NewAuthHeader(_a0 interface{}) *GatewayConnector_NewAuthHeader_Call
NewAuthHeader is a helper method to define mock.On call
- _a0 *url.URL
func (*GatewayConnector_Expecter) SendToGateway ¶ added in v2.15.0
func (_e *GatewayConnector_Expecter) SendToGateway(ctx interface{}, gatewayId interface{}, msg interface{}) *GatewayConnector_SendToGateway_Call
SendToGateway is a helper method to define mock.On call
- ctx context.Context
- gatewayId string
- msg *api.Message
func (*GatewayConnector_Expecter) Start ¶ added in v2.15.0
func (_e *GatewayConnector_Expecter) Start(_a0 interface{}) *GatewayConnector_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type GatewayConnector_NewAuthHeader_Call ¶ added in v2.15.0
GatewayConnector_NewAuthHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAuthHeader'
func (*GatewayConnector_NewAuthHeader_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnector_NewAuthHeader_Call) Return(_a0 []byte, _a1 error) *GatewayConnector_NewAuthHeader_Call
func (*GatewayConnector_NewAuthHeader_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnector_NewAuthHeader_Call) Run(run func(_a0 *url.URL)) *GatewayConnector_NewAuthHeader_Call
func (*GatewayConnector_NewAuthHeader_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnector_NewAuthHeader_Call) RunAndReturn(run func(*url.URL) ([]byte, error)) *GatewayConnector_NewAuthHeader_Call
type GatewayConnector_SendToGateway_Call ¶ added in v2.15.0
GatewayConnector_SendToGateway_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendToGateway'
func (*GatewayConnector_SendToGateway_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnector_SendToGateway_Call) Return(_a0 error) *GatewayConnector_SendToGateway_Call
func (*GatewayConnector_SendToGateway_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnector_SendToGateway_Call) Run(run func(ctx context.Context, gatewayId string, msg *api.Message)) *GatewayConnector_SendToGateway_Call
func (*GatewayConnector_SendToGateway_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnector_SendToGateway_Call) RunAndReturn(run func(context.Context, string, *api.Message) error) *GatewayConnector_SendToGateway_Call
type GatewayConnector_Start_Call ¶ added in v2.15.0
GatewayConnector_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*GatewayConnector_Start_Call) Return ¶ added in v2.15.0
func (_c *GatewayConnector_Start_Call) Return(_a0 error) *GatewayConnector_Start_Call
func (*GatewayConnector_Start_Call) Run ¶ added in v2.15.0
func (_c *GatewayConnector_Start_Call) Run(run func(_a0 context.Context)) *GatewayConnector_Start_Call
func (*GatewayConnector_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *GatewayConnector_Start_Call) RunAndReturn(run func(context.Context) error) *GatewayConnector_Start_Call
type Signer ¶
Signer is an autogenerated mock type for the Signer type
func NewSigner ¶
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) EXPECT ¶ added in v2.15.0
func (_m *Signer) EXPECT() *Signer_Expecter
type Signer_Expecter ¶ added in v2.15.0
type Signer_Expecter struct {
// contains filtered or unexported fields
}
func (*Signer_Expecter) Sign ¶ added in v2.15.0
func (_e *Signer_Expecter) Sign(data ...interface{}) *Signer_Sign_Call
Sign is a helper method to define mock.On call
- data ...[]byte
type Signer_Sign_Call ¶ added in v2.15.0
Signer_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*Signer_Sign_Call) Return ¶ added in v2.15.0
func (_c *Signer_Sign_Call) Return(_a0 []byte, _a1 error) *Signer_Sign_Call
func (*Signer_Sign_Call) Run ¶ added in v2.15.0
func (_c *Signer_Sign_Call) Run(run func(data ...[]byte)) *Signer_Sign_Call
func (*Signer_Sign_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Signer_Sign_Call) RunAndReturn(run func(...[]byte) ([]byte, error)) *Signer_Sign_Call