Documentation ¶
Index ¶
- func NewMockDatabase(forceError bool) (database.Database, error)
- func NewMockQueue(forceError bool) (database.Stream, error)
- type MockDatabase
- type MockQueue
- func (q *MockQueue) Read(ctx context.Context, fn database.MessageFn) error
- func (q *MockQueue) ReadError(ctx context.Context, fn database.MessageFn) error
- func (q *MockQueue) Save(m *database.Message) error
- func (q *MockQueue) SaveError(m *database.Message) error
- func (q *MockQueue) StartWork(db database.Database)
- func (q *MockQueue) StopWork()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockDatabase ¶
type MockDatabase struct { ForceError bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.