Documentation
¶
Overview ¶
Package snapshot is a generated GoMock package.
Index ¶
- Variables
- type Codec
- type Collector
- func (s *Collector) Load(ctx context.Context, sid stream.ID, st stream.Type) (stream stream.Stream, err error)
- func (s *Collector) Remove(ctx context.Context, st stream.Type, sid stream.ID) (err error)
- func (s *Collector) Reset(ctx context.Context, st stream.Type) (err error)
- func (s *Collector) Should(ctx context.Context, es stream.Stream) (ok bool)
- func (s *Collector) Take(ctx context.Context, es stream.Stream) (err error)
- type DecodeFunc
- type DefaultCodec
- type EncodeFunc
- type Logging
- func (l *Logging) Load(ctx context.Context, sid stream.ID, st stream.Type) (s stream.Stream, err error)
- func (l *Logging) Remove(ctx context.Context, st stream.Type, sid stream.ID) (err error)
- func (l *Logging) Reset(ctx context.Context, st stream.Type) (err error)
- func (l *Logging) Should(ctx context.Context, s stream.Stream) (ok bool)
- func (l *Logging) Take(ctx context.Context, s stream.Stream) (err error)
- type Metrics
- type Middleware
- type MockSnapshot
- func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
- func (m *MockSnapshot) Load(ctx context.Context, sid stream.ID, st stream.Type) (stream.Stream, error)
- func (m *MockSnapshot) Remove(ctx context.Context, st stream.Type, sid stream.ID) error
- func (m *MockSnapshot) Reset(ctx context.Context, st stream.Type) error
- func (m *MockSnapshot) Should(ctx context.Context, s stream.Stream) bool
- func (m *MockSnapshot) Take(ctx context.Context, s stream.Stream) error
- type MockSnapshotMockRecorder
- func (mr *MockSnapshotMockRecorder) Load(ctx, sid, st interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) Remove(ctx, st, sid interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) Reset(ctx, st interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) Should(ctx, s interface{}) *gomock.Call
- func (mr *MockSnapshotMockRecorder) Take(ctx, s interface{}) *gomock.Call
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCodecNotFound = errors.New("snapshot: codec not found")
View Source
var ErrNoSnapshot = errors.New("snapshot: no snapshot")
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
type DefaultCodec ¶
type DefaultCodec struct {
// contains filtered or unexported fields
}
func NewCodec ¶
func NewCodec() *DefaultCodec
func (*DefaultCodec) Stream ¶
func (e *DefaultCodec) Stream(st stream.Type, enc EncodeFunc, dec DecodeFunc)
type Logging ¶
type Logging struct {
// contains filtered or unexported fields
}
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 MockSnapshot ¶
type MockSnapshot struct {
// contains filtered or unexported fields
}
MockSnapshot is a mock of Snapshot interface
func NewMockSnapshot ¶
func NewMockSnapshot(ctrl *gomock.Controller) *MockSnapshot
NewMockSnapshot creates a new mock instance
func (*MockSnapshot) EXPECT ¶
func (m *MockSnapshot) EXPECT() *MockSnapshotMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSnapshot) Load ¶
func (m *MockSnapshot) Load(ctx context.Context, sid stream.ID, st stream.Type) (stream.Stream, error)
Load mocks base method
type MockSnapshotMockRecorder ¶
type MockSnapshotMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotMockRecorder is the mock recorder for MockSnapshot
func (*MockSnapshotMockRecorder) Load ¶
func (mr *MockSnapshotMockRecorder) Load(ctx, sid, st interface{}) *gomock.Call
Load indicates an expected call of Load
func (*MockSnapshotMockRecorder) Remove ¶
func (mr *MockSnapshotMockRecorder) Remove(ctx, st, sid interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockSnapshotMockRecorder) Reset ¶
func (mr *MockSnapshotMockRecorder) Reset(ctx, st interface{}) *gomock.Call
Reset indicates an expected call of Reset
func (*MockSnapshotMockRecorder) Should ¶
func (mr *MockSnapshotMockRecorder) Should(ctx, s interface{}) *gomock.Call
Should indicates an expected call of Should
func (*MockSnapshotMockRecorder) Take ¶
func (mr *MockSnapshotMockRecorder) Take(ctx, s interface{}) *gomock.Call
Take indicates an expected call of Take
Click to show internal directories.
Click to hide internal directories.