Documentation ¶
Overview ¶
Package eventbridge is a generated GoMock package.
Index ¶
- type DB
- type Dup
- type ErrorFunc
- type ErrorHandlerFunc
- type Event
- type EventFunc
- type Hook
- type Metrics
- type MockDB
- func (m *MockDB) Close() error
- func (m *MockDB) Connect(ctx context.Context, fn func() error) error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) OnEvent(eventFunc EventFunc)
- func (m *MockDB) UpdateVersion(ctx context.Context, streamID, streamType string, version int) error
- func (m *MockDB) WalkUnpublishedEvents(ctx context.Context, fn UnpublishedStreamFunc) error
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Connect(ctx, fn interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) OnEvent(eventFunc interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) UpdateVersion(ctx, streamID, streamType, version interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) WalkUnpublishedEvents(ctx, fn interface{}) *gomock.Call
- type Sync
- type UnpublishedStream
- type UnpublishedStreamFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandlerFunc ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDB) UpdateVersion ¶
UpdateVersion mocks base method
func (*MockDB) WalkUnpublishedEvents ¶
func (m *MockDB) WalkUnpublishedEvents(ctx context.Context, fn UnpublishedStreamFunc) error
WalkUnpublishedEvents mocks base method
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDBMockRecorder) Connect ¶
func (mr *MockDBMockRecorder) Connect(ctx, fn interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockDBMockRecorder) OnEvent ¶
func (mr *MockDBMockRecorder) OnEvent(eventFunc interface{}) *gomock.Call
OnEvent indicates an expected call of OnEvent
func (*MockDBMockRecorder) UpdateVersion ¶
func (mr *MockDBMockRecorder) UpdateVersion(ctx, streamID, streamType, version interface{}) *gomock.Call
UpdateVersion indicates an expected call of UpdateVersion
func (*MockDBMockRecorder) WalkUnpublishedEvents ¶
func (mr *MockDBMockRecorder) WalkUnpublishedEvents(ctx, fn interface{}) *gomock.Call
WalkUnpublishedEvents indicates an expected call of WalkUnpublishedEvents
type Sync ¶
type Sync struct {
// contains filtered or unexported fields
}
func New ¶
func New( db DB, pub esmessagingkafka.Client, dup Dup, sc Metrics, logger *zap.SugaredLogger, topicBuilder eseventbuskafka.TopicBuilder, ) *Sync
type UnpublishedStream ¶
type UnpublishedStream struct { StreamID string StreamType string LatestPublishedVersion int CurrentVersion int Events []*Event }
func (UnpublishedStream) TotalUnpublished ¶
func (ua UnpublishedStream) TotalUnpublished() int
type UnpublishedStreamFunc ¶
type UnpublishedStreamFunc func(ctx context.Context, stream *UnpublishedStream) error
Click to show internal directories.
Click to hide internal directories.