Documentation ¶
Index ¶
- type ClientHandlerRouter
- func (_m *ClientHandlerRouter) AddClientHandler(applicationId string, handler funcie.Handler) error
- func (_m *ClientHandlerRouter) EXPECT() *ClientHandlerRouter_Expecter
- func (_m *ClientHandlerRouter) Handle(ctx context.Context, message *funcie.Message) (*funcie.Response, error)
- func (_m *ClientHandlerRouter) RemoveClientHandler(applicationId string) error
- type ClientHandlerRouter_AddClientHandler_Call
- func (_c *ClientHandlerRouter_AddClientHandler_Call) Return(_a0 error) *ClientHandlerRouter_AddClientHandler_Call
- func (_c *ClientHandlerRouter_AddClientHandler_Call) Run(run func(applicationId string, handler funcie.Handler)) *ClientHandlerRouter_AddClientHandler_Call
- func (_c *ClientHandlerRouter_AddClientHandler_Call) RunAndReturn(run func(string, funcie.Handler) error) *ClientHandlerRouter_AddClientHandler_Call
- type ClientHandlerRouter_Expecter
- func (_e *ClientHandlerRouter_Expecter) AddClientHandler(applicationId interface{}, handler interface{}) *ClientHandlerRouter_AddClientHandler_Call
- func (_e *ClientHandlerRouter_Expecter) Handle(ctx interface{}, message interface{}) *ClientHandlerRouter_Handle_Call
- func (_e *ClientHandlerRouter_Expecter) RemoveClientHandler(applicationId interface{}) *ClientHandlerRouter_RemoveClientHandler_Call
- type ClientHandlerRouter_Handle_Call
- func (_c *ClientHandlerRouter_Handle_Call) Return(_a0 *funcie.Response, _a1 error) *ClientHandlerRouter_Handle_Call
- func (_c *ClientHandlerRouter_Handle_Call) Run(run func(ctx context.Context, message *funcie.Message)) *ClientHandlerRouter_Handle_Call
- func (_c *ClientHandlerRouter_Handle_Call) RunAndReturn(run func(context.Context, *funcie.Message) (*funcie.Response, error)) *ClientHandlerRouter_Handle_Call
- type ClientHandlerRouter_RemoveClientHandler_Call
- func (_c *ClientHandlerRouter_RemoveClientHandler_Call) Return(_a0 error) *ClientHandlerRouter_RemoveClientHandler_Call
- func (_c *ClientHandlerRouter_RemoveClientHandler_Call) Run(run func(applicationId string)) *ClientHandlerRouter_RemoveClientHandler_Call
- func (_c *ClientHandlerRouter_RemoveClientHandler_Call) RunAndReturn(run func(string) error) *ClientHandlerRouter_RemoveClientHandler_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHandlerRouter ¶
ClientHandlerRouter is an autogenerated mock type for the ClientHandlerRouter type
func NewClientHandlerRouter ¶
func NewClientHandlerRouter(t mockConstructorTestingTNewClientHandlerRouter) *ClientHandlerRouter
NewClientHandlerRouter creates a new instance of ClientHandlerRouter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ClientHandlerRouter) AddClientHandler ¶
func (_m *ClientHandlerRouter) AddClientHandler(applicationId string, handler funcie.Handler) error
AddClientHandler provides a mock function with given fields: applicationId, handler
func (*ClientHandlerRouter) EXPECT ¶
func (_m *ClientHandlerRouter) EXPECT() *ClientHandlerRouter_Expecter
func (*ClientHandlerRouter) Handle ¶
func (_m *ClientHandlerRouter) Handle(ctx context.Context, message *funcie.Message) (*funcie.Response, error)
Handle provides a mock function with given fields: ctx, message
func (*ClientHandlerRouter) RemoveClientHandler ¶
func (_m *ClientHandlerRouter) RemoveClientHandler(applicationId string) error
RemoveClientHandler provides a mock function with given fields: applicationId
type ClientHandlerRouter_AddClientHandler_Call ¶
ClientHandlerRouter_AddClientHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddClientHandler'
func (*ClientHandlerRouter_AddClientHandler_Call) Return ¶
func (_c *ClientHandlerRouter_AddClientHandler_Call) Return(_a0 error) *ClientHandlerRouter_AddClientHandler_Call
func (*ClientHandlerRouter_AddClientHandler_Call) Run ¶
func (_c *ClientHandlerRouter_AddClientHandler_Call) Run(run func(applicationId string, handler funcie.Handler)) *ClientHandlerRouter_AddClientHandler_Call
func (*ClientHandlerRouter_AddClientHandler_Call) RunAndReturn ¶
func (_c *ClientHandlerRouter_AddClientHandler_Call) RunAndReturn(run func(string, funcie.Handler) error) *ClientHandlerRouter_AddClientHandler_Call
type ClientHandlerRouter_Expecter ¶
type ClientHandlerRouter_Expecter struct {
// contains filtered or unexported fields
}
func (*ClientHandlerRouter_Expecter) AddClientHandler ¶
func (_e *ClientHandlerRouter_Expecter) AddClientHandler(applicationId interface{}, handler interface{}) *ClientHandlerRouter_AddClientHandler_Call
AddClientHandler is a helper method to define mock.On call
- applicationId string
- handler funcie.Handler
func (*ClientHandlerRouter_Expecter) Handle ¶
func (_e *ClientHandlerRouter_Expecter) Handle(ctx interface{}, message interface{}) *ClientHandlerRouter_Handle_Call
Handle is a helper method to define mock.On call
- ctx context.Context
- message *funcie.Message
func (*ClientHandlerRouter_Expecter) RemoveClientHandler ¶
func (_e *ClientHandlerRouter_Expecter) RemoveClientHandler(applicationId interface{}) *ClientHandlerRouter_RemoveClientHandler_Call
RemoveClientHandler is a helper method to define mock.On call
- applicationId string
type ClientHandlerRouter_Handle_Call ¶
ClientHandlerRouter_Handle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Handle'
func (*ClientHandlerRouter_Handle_Call) Return ¶
func (_c *ClientHandlerRouter_Handle_Call) Return(_a0 *funcie.Response, _a1 error) *ClientHandlerRouter_Handle_Call
func (*ClientHandlerRouter_Handle_Call) Run ¶
func (_c *ClientHandlerRouter_Handle_Call) Run(run func(ctx context.Context, message *funcie.Message)) *ClientHandlerRouter_Handle_Call
func (*ClientHandlerRouter_Handle_Call) RunAndReturn ¶
func (_c *ClientHandlerRouter_Handle_Call) RunAndReturn(run func(context.Context, *funcie.Message) (*funcie.Response, error)) *ClientHandlerRouter_Handle_Call
type ClientHandlerRouter_RemoveClientHandler_Call ¶
ClientHandlerRouter_RemoveClientHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveClientHandler'
func (*ClientHandlerRouter_RemoveClientHandler_Call) Return ¶
func (_c *ClientHandlerRouter_RemoveClientHandler_Call) Return(_a0 error) *ClientHandlerRouter_RemoveClientHandler_Call
func (*ClientHandlerRouter_RemoveClientHandler_Call) Run ¶
func (_c *ClientHandlerRouter_RemoveClientHandler_Call) Run(run func(applicationId string)) *ClientHandlerRouter_RemoveClientHandler_Call
func (*ClientHandlerRouter_RemoveClientHandler_Call) RunAndReturn ¶
func (_c *ClientHandlerRouter_RemoveClientHandler_Call) RunAndReturn(run func(string) error) *ClientHandlerRouter_RemoveClientHandler_Call