Documentation ¶
Overview ¶
Package eventstore is a generated GoMock package.
Index ¶
- Variables
- type Collector
- func (s *Collector) Append(ctx context.Context, sid stream.ID, st stream.Type, events []stream.Event, ...) (err error)
- func (s *Collector) Iter(ctx context.Context, st stream.Type, fn WalkFunc) error
- func (s *Collector) Load(ctx context.Context, sid stream.ID, st stream.Type, from stream.Version) (events []stream.Event, err error)
- type InMemStore
- func (s *InMemStore) Append(_ context.Context, sid stream.ID, st stream.Type, e []stream.Event, ...) error
- func (s *InMemStore) Drop()
- func (s *InMemStore) Iter(_ context.Context, st stream.Type, w WalkFunc) error
- func (s *InMemStore) Load(_ context.Context, sid stream.ID, st stream.Type, from stream.Version) ([]stream.Event, error)
- type Logging
- func (l *Logging) Append(ctx context.Context, sid stream.ID, st stream.Type, events []stream.Event, ...) (err error)
- func (l *Logging) Iter(ctx context.Context, st stream.Type, fn WalkFunc) (err error)
- func (l *Logging) Load(ctx context.Context, sid stream.ID, st stream.Type, from stream.Version) (events []stream.Event, err error)
- type Metrics
- type Middleware
- type MockStore
- func (m *MockStore) Append(arg0 context.Context, arg1 stream.ID, arg2 stream.Type, arg3 []stream.Event, ...) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) Iter(arg0 context.Context, arg1 stream.Type, arg2 WalkFunc) error
- func (m *MockStore) Load(arg0 context.Context, arg1 stream.ID, arg2 stream.Type, arg3 stream.Version) ([]stream.Event, error)
- type MockStoreMockRecorder
- type Store
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVersionInconsistency = errors.New("eventstore: version inconsistency") ErrEventsNotFound = errors.New("eventstore: events not found") )
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
type InMemStore ¶
type InMemStore struct {
// contains filtered or unexported fields
}
func NewInMemStore ¶
func NewInMemStore() *InMemStore
func (*InMemStore) Drop ¶
func (s *InMemStore) Drop()
type Logging ¶
type Logging struct {
// contains filtered or unexported fields
}
type Metrics ¶
type Metrics struct { LoadCounter metrics.Counter LoadHistogram metrics.Histogram LoadGauge metrics.Gauge AppendCounter metrics.Counter AppendHistogram metrics.Histogram AppendGauge metrics.Gauge }
type Middleware ¶
func NewCollector ¶
func NewCollector(m *Metrics) Middleware
func NewLogging ¶
func NewLogging(logger log.Logger) Middleware
func Wrap ¶
func Wrap(em Middleware, ems ...Middleware) Middleware
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance
func (*MockStore) Append ¶
func (m *MockStore) Append(arg0 context.Context, arg1 stream.ID, arg2 stream.Type, arg3 []stream.Event, arg4 stream.Version) error
Append mocks base method
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore
func (*MockStoreMockRecorder) Append ¶
func (mr *MockStoreMockRecorder) Append(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Append indicates an expected call of Append
func (*MockStoreMockRecorder) Iter ¶
func (mr *MockStoreMockRecorder) Iter(arg0, arg1, arg2 interface{}) *gomock.Call
Iter indicates an expected call of Iter
func (*MockStoreMockRecorder) Load ¶
func (mr *MockStoreMockRecorder) Load(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Load indicates an expected call of Load
Click to show internal directories.
Click to hide internal directories.