Documentation ¶
Index ¶
- type ApplicationClient
- type ApplicationClient_Expecter
- type ApplicationClient_ProcessRequest_Call
- func (_c *ApplicationClient_ProcessRequest_Call) Return(_a0 *funcie.Response, _a1 error) *ApplicationClient_ProcessRequest_Call
- func (_c *ApplicationClient_ProcessRequest_Call) Run(...) *ApplicationClient_ProcessRequest_Call
- func (_c *ApplicationClient_ProcessRequest_Call) RunAndReturn(...) *ApplicationClient_ProcessRequest_Call
- type Handler
- func (_m *Handler) Deregister(ctx context.Context, ...) (*funcie.ResponseBase[messages.DeregistrationResponsePayload], error)
- func (_m *Handler) EXPECT() *Handler_Expecter
- func (_m *Handler) ForwardRequest(ctx context.Context, ...) (*funcie.ResponseBase[messages.ForwardRequestResponsePayload], error)
- func (_m *Handler) Register(ctx context.Context, ...) (*funcie.ResponseBase[messages.RegistrationResponsePayload], error)
- type Handler_Deregister_Call
- func (_c *Handler_Deregister_Call) Return(_a0 *funcie.ResponseBase[messages.DeregistrationResponsePayload], _a1 error) *Handler_Deregister_Call
- func (_c *Handler_Deregister_Call) Run(run func(ctx context.Context, ...)) *Handler_Deregister_Call
- func (_c *Handler_Deregister_Call) RunAndReturn(...) *Handler_Deregister_Call
- type Handler_Expecter
- func (_e *Handler_Expecter) Deregister(ctx interface{}, message interface{}) *Handler_Deregister_Call
- func (_e *Handler_Expecter) ForwardRequest(ctx interface{}, message interface{}) *Handler_ForwardRequest_Call
- func (_e *Handler_Expecter) Register(ctx interface{}, message interface{}) *Handler_Register_Call
- type Handler_ForwardRequest_Call
- func (_c *Handler_ForwardRequest_Call) Return(_a0 *funcie.ResponseBase[messages.ForwardRequestResponsePayload], _a1 error) *Handler_ForwardRequest_Call
- func (_c *Handler_ForwardRequest_Call) Run(run func(ctx context.Context, ...)) *Handler_ForwardRequest_Call
- func (_c *Handler_ForwardRequest_Call) RunAndReturn(...) *Handler_ForwardRequest_Call
- type Handler_Register_Call
- func (_c *Handler_Register_Call) Return(_a0 *funcie.ResponseBase[messages.RegistrationResponsePayload], _a1 error) *Handler_Register_Call
- func (_c *Handler_Register_Call) Run(run func(ctx context.Context, ...)) *Handler_Register_Call
- func (_c *Handler_Register_Call) RunAndReturn(...) *Handler_Register_Call
- type HostTranslator
- type HostTranslator_Expecter
- type HostTranslator_IsHostTranslationRequired_Call
- func (_c *HostTranslator_IsHostTranslationRequired_Call) Return(_a0 bool, _a1 error) *HostTranslator_IsHostTranslationRequired_Call
- func (_c *HostTranslator_IsHostTranslationRequired_Call) Run(run func(ctx context.Context)) *HostTranslator_IsHostTranslationRequired_Call
- func (_c *HostTranslator_IsHostTranslationRequired_Call) RunAndReturn(run func(context.Context) (bool, error)) *HostTranslator_IsHostTranslationRequired_Call
- type HostTranslator_TranslateLocalHostToResolvedHost_Call
- func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) Return(_a0 string, _a1 error) *HostTranslator_TranslateLocalHostToResolvedHost_Call
- func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) Run(run func(ctx context.Context, host string)) *HostTranslator_TranslateLocalHostToResolvedHost_Call
- func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) RunAndReturn(run func(context.Context, string) (string, error)) *HostTranslator_TranslateLocalHostToResolvedHost_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationClient ¶
ApplicationClient is an autogenerated mock type for the ApplicationClient type
func NewApplicationClient ¶
func NewApplicationClient(t mockConstructorTestingTNewApplicationClient) *ApplicationClient
NewApplicationClient creates a new instance of ApplicationClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ApplicationClient) EXPECT ¶
func (_m *ApplicationClient) EXPECT() *ApplicationClient_Expecter
func (*ApplicationClient) ProcessRequest ¶
func (_m *ApplicationClient) ProcessRequest(ctx context.Context, application funcie.Application, request *funcie.Message) (*funcie.Response, error)
ProcessRequest provides a mock function with given fields: ctx, application, request
type ApplicationClient_Expecter ¶
type ApplicationClient_Expecter struct {
// contains filtered or unexported fields
}
func (*ApplicationClient_Expecter) ProcessRequest ¶
func (_e *ApplicationClient_Expecter) ProcessRequest(ctx interface{}, application interface{}, request interface{}) *ApplicationClient_ProcessRequest_Call
ProcessRequest is a helper method to define mock.On call
- ctx context.Context
- application funcie.Application
- request *funcie.Message
type ApplicationClient_ProcessRequest_Call ¶
ApplicationClient_ProcessRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessRequest'
func (*ApplicationClient_ProcessRequest_Call) Return ¶
func (_c *ApplicationClient_ProcessRequest_Call) Return(_a0 *funcie.Response, _a1 error) *ApplicationClient_ProcessRequest_Call
func (*ApplicationClient_ProcessRequest_Call) Run ¶
func (_c *ApplicationClient_ProcessRequest_Call) Run(run func(ctx context.Context, application funcie.Application, request *funcie.Message)) *ApplicationClient_ProcessRequest_Call
func (*ApplicationClient_ProcessRequest_Call) RunAndReturn ¶
func (_c *ApplicationClient_ProcessRequest_Call) RunAndReturn(run func(context.Context, funcie.Application, *funcie.Message) (*funcie.Response, error)) *ApplicationClient_ProcessRequest_Call
type Handler ¶
Handler is an autogenerated mock type for the Handler type
func NewHandler ¶
func NewHandler(t mockConstructorTestingTNewHandler) *Handler
NewHandler creates a new instance of Handler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Handler) Deregister ¶
func (_m *Handler) Deregister(ctx context.Context, message funcie.MessageBase[messages.DeregistrationRequestPayload]) (*funcie.ResponseBase[messages.DeregistrationResponsePayload], error)
Deregister provides a mock function with given fields: ctx, message
func (*Handler) EXPECT ¶
func (_m *Handler) EXPECT() *Handler_Expecter
func (*Handler) ForwardRequest ¶
func (_m *Handler) ForwardRequest(ctx context.Context, message funcie.MessageBase[messages.ForwardRequestPayload]) (*funcie.ResponseBase[messages.ForwardRequestResponsePayload], error)
ForwardRequest provides a mock function with given fields: ctx, message
func (*Handler) Register ¶
func (_m *Handler) Register(ctx context.Context, message funcie.MessageBase[messages.RegistrationRequestPayload]) (*funcie.ResponseBase[messages.RegistrationResponsePayload], error)
Register provides a mock function with given fields: ctx, message
type Handler_Deregister_Call ¶
Handler_Deregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deregister'
func (*Handler_Deregister_Call) Return ¶
func (_c *Handler_Deregister_Call) Return(_a0 *funcie.ResponseBase[messages.DeregistrationResponsePayload], _a1 error) *Handler_Deregister_Call
func (*Handler_Deregister_Call) Run ¶
func (_c *Handler_Deregister_Call) Run(run func(ctx context.Context, message funcie.MessageBase[messages.DeregistrationRequestPayload])) *Handler_Deregister_Call
func (*Handler_Deregister_Call) RunAndReturn ¶
func (_c *Handler_Deregister_Call) RunAndReturn(run func(context.Context, funcie.MessageBase[messages.DeregistrationRequestPayload]) (*funcie.ResponseBase[messages.DeregistrationResponsePayload], error)) *Handler_Deregister_Call
type Handler_Expecter ¶
type Handler_Expecter struct {
// contains filtered or unexported fields
}
func (*Handler_Expecter) Deregister ¶
func (_e *Handler_Expecter) Deregister(ctx interface{}, message interface{}) *Handler_Deregister_Call
Deregister is a helper method to define mock.On call
- ctx context.Context
- message funcie.MessageBase[messages.DeregistrationRequestPayload]
func (*Handler_Expecter) ForwardRequest ¶
func (_e *Handler_Expecter) ForwardRequest(ctx interface{}, message interface{}) *Handler_ForwardRequest_Call
ForwardRequest is a helper method to define mock.On call
- ctx context.Context
- message funcie.MessageBase[messages.ForwardRequestPayload]
func (*Handler_Expecter) Register ¶
func (_e *Handler_Expecter) Register(ctx interface{}, message interface{}) *Handler_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- message funcie.MessageBase[messages.RegistrationRequestPayload]
type Handler_ForwardRequest_Call ¶
Handler_ForwardRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForwardRequest'
func (*Handler_ForwardRequest_Call) Return ¶
func (_c *Handler_ForwardRequest_Call) Return(_a0 *funcie.ResponseBase[messages.ForwardRequestResponsePayload], _a1 error) *Handler_ForwardRequest_Call
func (*Handler_ForwardRequest_Call) Run ¶
func (_c *Handler_ForwardRequest_Call) Run(run func(ctx context.Context, message funcie.MessageBase[messages.ForwardRequestPayload])) *Handler_ForwardRequest_Call
func (*Handler_ForwardRequest_Call) RunAndReturn ¶
func (_c *Handler_ForwardRequest_Call) RunAndReturn(run func(context.Context, funcie.MessageBase[messages.ForwardRequestPayload]) (*funcie.ResponseBase[messages.ForwardRequestResponsePayload], error)) *Handler_ForwardRequest_Call
type Handler_Register_Call ¶
Handler_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Handler_Register_Call) Return ¶
func (_c *Handler_Register_Call) Return(_a0 *funcie.ResponseBase[messages.RegistrationResponsePayload], _a1 error) *Handler_Register_Call
func (*Handler_Register_Call) Run ¶
func (_c *Handler_Register_Call) Run(run func(ctx context.Context, message funcie.MessageBase[messages.RegistrationRequestPayload])) *Handler_Register_Call
func (*Handler_Register_Call) RunAndReturn ¶
func (_c *Handler_Register_Call) RunAndReturn(run func(context.Context, funcie.MessageBase[messages.RegistrationRequestPayload]) (*funcie.ResponseBase[messages.RegistrationResponsePayload], error)) *Handler_Register_Call
type HostTranslator ¶ added in v0.1.0
HostTranslator is an autogenerated mock type for the HostTranslator type
func NewHostTranslator ¶ added in v0.1.0
func NewHostTranslator(t interface { mock.TestingT Cleanup(func()) }) *HostTranslator
NewHostTranslator creates a new instance of HostTranslator. 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 (*HostTranslator) EXPECT ¶ added in v0.1.0
func (_m *HostTranslator) EXPECT() *HostTranslator_Expecter
func (*HostTranslator) IsHostTranslationRequired ¶ added in v0.1.0
func (_m *HostTranslator) IsHostTranslationRequired(ctx context.Context) (bool, error)
IsHostTranslationRequired provides a mock function with given fields: ctx
func (*HostTranslator) TranslateLocalHostToResolvedHost ¶ added in v0.1.0
func (_m *HostTranslator) TranslateLocalHostToResolvedHost(ctx context.Context, host string) (string, error)
TranslateLocalHostToResolvedHost provides a mock function with given fields: ctx, host
type HostTranslator_Expecter ¶ added in v0.1.0
type HostTranslator_Expecter struct {
// contains filtered or unexported fields
}
func (*HostTranslator_Expecter) IsHostTranslationRequired ¶ added in v0.1.0
func (_e *HostTranslator_Expecter) IsHostTranslationRequired(ctx interface{}) *HostTranslator_IsHostTranslationRequired_Call
IsHostTranslationRequired is a helper method to define mock.On call
- ctx context.Context
func (*HostTranslator_Expecter) TranslateLocalHostToResolvedHost ¶ added in v0.1.0
func (_e *HostTranslator_Expecter) TranslateLocalHostToResolvedHost(ctx interface{}, host interface{}) *HostTranslator_TranslateLocalHostToResolvedHost_Call
TranslateLocalHostToResolvedHost is a helper method to define mock.On call
- ctx context.Context
- host string
type HostTranslator_IsHostTranslationRequired_Call ¶ added in v0.1.0
HostTranslator_IsHostTranslationRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsHostTranslationRequired'
func (*HostTranslator_IsHostTranslationRequired_Call) Return ¶ added in v0.1.0
func (_c *HostTranslator_IsHostTranslationRequired_Call) Return(_a0 bool, _a1 error) *HostTranslator_IsHostTranslationRequired_Call
func (*HostTranslator_IsHostTranslationRequired_Call) Run ¶ added in v0.1.0
func (_c *HostTranslator_IsHostTranslationRequired_Call) Run(run func(ctx context.Context)) *HostTranslator_IsHostTranslationRequired_Call
func (*HostTranslator_IsHostTranslationRequired_Call) RunAndReturn ¶ added in v0.1.0
func (_c *HostTranslator_IsHostTranslationRequired_Call) RunAndReturn(run func(context.Context) (bool, error)) *HostTranslator_IsHostTranslationRequired_Call
type HostTranslator_TranslateLocalHostToResolvedHost_Call ¶ added in v0.1.0
HostTranslator_TranslateLocalHostToResolvedHost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TranslateLocalHostToResolvedHost'
func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) Return ¶ added in v0.1.0
func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) Return(_a0 string, _a1 error) *HostTranslator_TranslateLocalHostToResolvedHost_Call
func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) Run ¶ added in v0.1.0
func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) Run(run func(ctx context.Context, host string)) *HostTranslator_TranslateLocalHostToResolvedHost_Call
func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) RunAndReturn ¶ added in v0.1.0
func (_c *HostTranslator_TranslateLocalHostToResolvedHost_Call) RunAndReturn(run func(context.Context, string) (string, error)) *HostTranslator_TranslateLocalHostToResolvedHost_Call