Documentation ¶
Overview ¶
Package handlers is a generated GoMock package.
Index ¶
- func Publisher(c *gofr.Context) (interface{}, error)
- func Subscriber(c *gofr.Context) (interface{}, error)
- type MockNotifier
- func (m *MockNotifier) Bind(message []byte, target interface{}) error
- func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder
- func (m *MockNotifier) HealthCheck() types.Health
- func (m *MockNotifier) IsSet() bool
- func (m *MockNotifier) Publish(value interface{}, attributes map[string]interface{}) error
- func (m *MockNotifier) Subscribe() (*notifier.Message, error)
- func (m *MockNotifier) SubscribeWithResponse(target interface{}) (*notifier.Message, error)
- type MockNotifierMockRecorder
- func (mr *MockNotifierMockRecorder) Bind(message, target interface{}) *gomock.Call
- func (mr *MockNotifierMockRecorder) HealthCheck() *gomock.Call
- func (mr *MockNotifierMockRecorder) IsSet() *gomock.Call
- func (mr *MockNotifierMockRecorder) Publish(value, attributes interface{}) *gomock.Call
- func (mr *MockNotifierMockRecorder) Subscribe() *gomock.Call
- func (mr *MockNotifierMockRecorder) SubscribeWithResponse(target interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subscriber ¶
Types ¶
type MockNotifier ¶
type MockNotifier struct {
// contains filtered or unexported fields
}
MockNotifier is a mock of Notifier interface.
func NewMockNotifier ¶
func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier
NewMockNotifier creates a new mock instance.
func (*MockNotifier) Bind ¶
func (m *MockNotifier) Bind(message []byte, target interface{}) error
Bind mocks base method.
func (*MockNotifier) EXPECT ¶
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNotifier) HealthCheck ¶
func (m *MockNotifier) HealthCheck() types.Health
HealthCheck mocks base method.
func (*MockNotifier) Publish ¶
func (m *MockNotifier) Publish(value interface{}, attributes map[string]interface{}) error
Publish mocks base method.
func (*MockNotifier) Subscribe ¶
func (m *MockNotifier) Subscribe() (*notifier.Message, error)
Subscribe mocks base method.
func (*MockNotifier) SubscribeWithResponse ¶
func (m *MockNotifier) SubscribeWithResponse(target interface{}) (*notifier.Message, error)
SubscribeWithResponse mocks base method.
type MockNotifierMockRecorder ¶
type MockNotifierMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifierMockRecorder is the mock recorder for MockNotifier.
func (*MockNotifierMockRecorder) Bind ¶
func (mr *MockNotifierMockRecorder) Bind(message, target interface{}) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockNotifierMockRecorder) HealthCheck ¶
func (mr *MockNotifierMockRecorder) HealthCheck() *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockNotifierMockRecorder) IsSet ¶
func (mr *MockNotifierMockRecorder) IsSet() *gomock.Call
IsSet indicates an expected call of IsSet.
func (*MockNotifierMockRecorder) Publish ¶
func (mr *MockNotifierMockRecorder) Publish(value, attributes interface{}) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockNotifierMockRecorder) Subscribe ¶
func (mr *MockNotifierMockRecorder) Subscribe() *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockNotifierMockRecorder) SubscribeWithResponse ¶
func (mr *MockNotifierMockRecorder) SubscribeWithResponse(target interface{}) *gomock.Call
SubscribeWithResponse indicates an expected call of SubscribeWithResponse.