Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockNATSPopulator
- func (m *MockNATSPopulator) EXPECT() *MockNATSPopulatorMockRecorder
- func (m *MockNATSPopulator) Publish(subj string, msg []byte, headers ...string) error
- func (m *MockNATSPopulator) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error
- func (m *MockNATSPopulator) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)
- func (m *MockNATSPopulator) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)
- type MockNATSPopulatorMockRecorder
- func (mr *MockNATSPopulatorMockRecorder) Publish(subj, msg any, headers ...any) *gomock.Call
- func (mr *MockNATSPopulatorMockRecorder) PublishWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
- func (mr *MockNATSPopulatorMockRecorder) Requester(subj, data, timeout any, headers ...any) *gomock.Call
- func (mr *MockNATSPopulatorMockRecorder) RequesterWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
- type MockNATSPublisher
- type MockNATSPublisherMockRecorder
- type MockNATSRequester
- func (m *MockNATSRequester) EXPECT() *MockNATSRequesterMockRecorder
- func (m *MockNATSRequester) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)
- func (m *MockNATSRequester) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)
- type MockNATSRequesterMockRecorder
- type MockStorage
- func (m *MockStorage) Add(group, id string) error
- func (m *MockStorage) Delete(group, id string) error
- func (m *MockStorage) DeleteByID(id string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) GetIDs() []string
- func (m *MockStorage) GetKeys(group string) []string
- func (m *MockStorage) Size(group string) int
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Add(group, id any) *gomock.Call
- func (mr *MockStorageMockRecorder) Delete(group, id any) *gomock.Call
- func (mr *MockStorageMockRecorder) DeleteByID(id any) *gomock.Call
- func (mr *MockStorageMockRecorder) GetIDs() *gomock.Call
- func (mr *MockStorageMockRecorder) GetKeys(group any) *gomock.Call
- func (mr *MockStorageMockRecorder) Size(group any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNATSPopulator ¶
type MockNATSPopulator struct {
// contains filtered or unexported fields
}
MockNATSPopulator is a mock of NATSPopulator interface.
func NewMockNATSPopulator ¶
func NewMockNATSPopulator(ctrl *gomock.Controller) *MockNATSPopulator
NewMockNATSPopulator creates a new mock instance.
func (*MockNATSPopulator) EXPECT ¶
func (m *MockNATSPopulator) EXPECT() *MockNATSPopulatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNATSPopulator) Publish ¶
func (m *MockNATSPopulator) Publish(subj string, msg []byte, headers ...string) error
Publish mocks base method.
func (*MockNATSPopulator) PublishWithContext ¶
func (m *MockNATSPopulator) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error
PublishWithContext mocks base method.
func (*MockNATSPopulator) Requester ¶
func (m *MockNATSPopulator) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)
Requester mocks base method.
func (*MockNATSPopulator) RequesterWithContext ¶
func (m *MockNATSPopulator) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)
RequesterWithContext mocks base method.
type MockNATSPopulatorMockRecorder ¶
type MockNATSPopulatorMockRecorder struct {
// contains filtered or unexported fields
}
MockNATSPopulatorMockRecorder is the mock recorder for MockNATSPopulator.
func (*MockNATSPopulatorMockRecorder) Publish ¶
func (mr *MockNATSPopulatorMockRecorder) Publish(subj, msg any, headers ...any) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockNATSPopulatorMockRecorder) PublishWithContext ¶
func (mr *MockNATSPopulatorMockRecorder) PublishWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
PublishWithContext indicates an expected call of PublishWithContext.
func (*MockNATSPopulatorMockRecorder) Requester ¶
func (mr *MockNATSPopulatorMockRecorder) Requester(subj, data, timeout any, headers ...any) *gomock.Call
Requester indicates an expected call of Requester.
func (*MockNATSPopulatorMockRecorder) RequesterWithContext ¶
func (mr *MockNATSPopulatorMockRecorder) RequesterWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
RequesterWithContext indicates an expected call of RequesterWithContext.
type MockNATSPublisher ¶
type MockNATSPublisher struct {
// contains filtered or unexported fields
}
MockNATSPublisher is a mock of NATSPublisher interface.
func NewMockNATSPublisher ¶
func NewMockNATSPublisher(ctrl *gomock.Controller) *MockNATSPublisher
NewMockNATSPublisher creates a new mock instance.
func (*MockNATSPublisher) EXPECT ¶
func (m *MockNATSPublisher) EXPECT() *MockNATSPublisherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNATSPublisher) Publish ¶
func (m *MockNATSPublisher) Publish(subj string, msg []byte, headers ...string) error
Publish mocks base method.
func (*MockNATSPublisher) PublishWithContext ¶
func (m *MockNATSPublisher) PublishWithContext(ctx context.Context, subj string, msg []byte, headers ...string) error
PublishWithContext mocks base method.
type MockNATSPublisherMockRecorder ¶
type MockNATSPublisherMockRecorder struct {
// contains filtered or unexported fields
}
MockNATSPublisherMockRecorder is the mock recorder for MockNATSPublisher.
func (*MockNATSPublisherMockRecorder) Publish ¶
func (mr *MockNATSPublisherMockRecorder) Publish(subj, msg any, headers ...any) *gomock.Call
Publish indicates an expected call of Publish.
func (*MockNATSPublisherMockRecorder) PublishWithContext ¶
func (mr *MockNATSPublisherMockRecorder) PublishWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
PublishWithContext indicates an expected call of PublishWithContext.
type MockNATSRequester ¶
type MockNATSRequester struct {
// contains filtered or unexported fields
}
MockNATSRequester is a mock of NATSRequester interface.
func NewMockNATSRequester ¶
func NewMockNATSRequester(ctrl *gomock.Controller) *MockNATSRequester
NewMockNATSRequester creates a new mock instance.
func (*MockNATSRequester) EXPECT ¶
func (m *MockNATSRequester) EXPECT() *MockNATSRequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNATSRequester) Requester ¶
func (m *MockNATSRequester) Requester(subj string, data []byte, timeout time.Duration, headers ...string) ([]byte, error)
Requester mocks base method.
func (*MockNATSRequester) RequesterWithContext ¶
func (m *MockNATSRequester) RequesterWithContext(ctx context.Context, subj string, msg []byte, headers ...string) ([]byte, error)
RequesterWithContext mocks base method.
type MockNATSRequesterMockRecorder ¶
type MockNATSRequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockNATSRequesterMockRecorder is the mock recorder for MockNATSRequester.
func (*MockNATSRequesterMockRecorder) Requester ¶
func (mr *MockNATSRequesterMockRecorder) Requester(subj, data, timeout any, headers ...any) *gomock.Call
Requester indicates an expected call of Requester.
func (*MockNATSRequesterMockRecorder) RequesterWithContext ¶
func (mr *MockNATSRequesterMockRecorder) RequesterWithContext(ctx, subj, msg any, headers ...any) *gomock.Call
RequesterWithContext indicates an expected call of RequesterWithContext.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) Delete ¶
func (m *MockStorage) Delete(group, id string) error
Delete mocks base method.
func (*MockStorage) DeleteByID ¶
func (m *MockStorage) DeleteByID(id string) error
DeleteByID mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) GetKeys ¶
func (m *MockStorage) GetKeys(group string) []string
GetKeys mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Add ¶
func (mr *MockStorageMockRecorder) Add(group, id any) *gomock.Call
Add indicates an expected call of Add.
func (*MockStorageMockRecorder) Delete ¶
func (mr *MockStorageMockRecorder) Delete(group, id any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStorageMockRecorder) DeleteByID ¶
func (mr *MockStorageMockRecorder) DeleteByID(id any) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockStorageMockRecorder) GetIDs ¶
func (mr *MockStorageMockRecorder) GetIDs() *gomock.Call
GetIDs indicates an expected call of GetIDs.