Documentation ¶
Overview ¶
Package commitlog is a generated GoMock package.
Index ¶
- Constants
- Variables
- func Files(opts Options) ([]File, []ErrorWithPath, error)
- func NewIterator(iterOpts IteratorOpts) (iter Iterator, corruptFiles []ErrorWithPath, err error)
- func ReadLogInfo(filePath string, opts Options) (time.Time, time.Duration, int64, error)
- type CommitLog
- type ErrorWithPath
- type File
- type FileFilterPredicate
- type Iterator
- type IteratorOpts
- type MockCommitLog
- func (m *MockCommitLog) ActiveLogs() ([]File, error)
- func (m *MockCommitLog) Close() error
- func (m *MockCommitLog) EXPECT() *MockCommitLogMockRecorder
- func (m *MockCommitLog) Open() error
- func (m *MockCommitLog) RotateLogs() (File, error)
- func (m *MockCommitLog) Write(ctx context.Context, series ts.Series, datapoint ts.Datapoint, unit time0.Unit, ...) error
- func (m *MockCommitLog) WriteBatch(ctx context.Context, writes ts.WriteBatch) error
- type MockCommitLogMockRecorder
- func (mr *MockCommitLogMockRecorder) ActiveLogs() *gomock.Call
- func (mr *MockCommitLogMockRecorder) Close() *gomock.Call
- func (mr *MockCommitLogMockRecorder) Open() *gomock.Call
- func (mr *MockCommitLogMockRecorder) RotateLogs() *gomock.Call
- func (mr *MockCommitLogMockRecorder) Write(ctx, series, datapoint, unit, annotation interface{}) *gomock.Call
- func (mr *MockCommitLogMockRecorder) WriteBatch(ctx, writes interface{}) *gomock.Call
- type MockIterator
- type MockIteratorMockRecorder
- type MockOptions
- func (m *MockOptions) BacklogQueueChannelSize() int
- func (m *MockOptions) BacklogQueueSize() int
- func (m *MockOptions) BlockSize() time.Duration
- func (m *MockOptions) BytesPool() pool.CheckedBytesPool
- func (m *MockOptions) ClockOptions() clock.Options
- func (m *MockOptions) EXPECT() *MockOptionsMockRecorder
- func (m *MockOptions) FilesystemOptions() fs.Options
- func (m *MockOptions) FlushInterval() time.Duration
- func (m *MockOptions) FlushSize() int
- func (m *MockOptions) IdentifierPool() ident.Pool
- func (m *MockOptions) InstrumentOptions() instrument.Options
- func (m *MockOptions) ReadConcurrency() int
- func (m *MockOptions) SetBacklogQueueChannelSize(value int) Options
- func (m *MockOptions) SetBacklogQueueSize(value int) Options
- func (m *MockOptions) SetBlockSize(value time.Duration) Options
- func (m *MockOptions) SetBytesPool(value pool.CheckedBytesPool) Options
- func (m *MockOptions) SetClockOptions(value clock.Options) Options
- func (m *MockOptions) SetFilesystemOptions(value fs.Options) Options
- func (m *MockOptions) SetFlushInterval(value time.Duration) Options
- func (m *MockOptions) SetFlushSize(value int) Options
- func (m *MockOptions) SetIdentifierPool(value ident.Pool) Options
- func (m *MockOptions) SetInstrumentOptions(value instrument.Options) Options
- func (m *MockOptions) SetReadConcurrency(concurrency int) Options
- func (m *MockOptions) SetStrategy(value Strategy) Options
- func (m *MockOptions) Strategy() Strategy
- func (m *MockOptions) Validate() error
- type MockOptionsMockRecorder
- func (mr *MockOptionsMockRecorder) BacklogQueueChannelSize() *gomock.Call
- func (mr *MockOptionsMockRecorder) BacklogQueueSize() *gomock.Call
- func (mr *MockOptionsMockRecorder) BlockSize() *gomock.Call
- func (mr *MockOptionsMockRecorder) BytesPool() *gomock.Call
- func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call
- func (mr *MockOptionsMockRecorder) FilesystemOptions() *gomock.Call
- func (mr *MockOptionsMockRecorder) FlushInterval() *gomock.Call
- func (mr *MockOptionsMockRecorder) FlushSize() *gomock.Call
- func (mr *MockOptionsMockRecorder) IdentifierPool() *gomock.Call
- func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call
- func (mr *MockOptionsMockRecorder) ReadConcurrency() *gomock.Call
- func (mr *MockOptionsMockRecorder) SetBacklogQueueChannelSize(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetBacklogQueueSize(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetBlockSize(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetBytesPool(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetFilesystemOptions(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetFlushInterval(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetFlushSize(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetIdentifierPool(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetReadConcurrency(concurrency interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) SetStrategy(value interface{}) *gomock.Call
- func (mr *MockOptionsMockRecorder) Strategy() *gomock.Call
- func (mr *MockOptionsMockRecorder) Validate() *gomock.Call
- type Options
- type SeriesFilterPredicate
- type Strategy
Constants ¶
const ( // MaximumQueueSizeQueueChannelSizeRatio is the maximum ratio between the // backlog queue size and backlog queue channel size. MaximumQueueSizeQueueChannelSizeRatio = 8.0 )
Variables ¶
var ( // ErrCommitLogQueueFull is raised when trying to write to the commit log // when the queue is full ErrCommitLogQueueFull = errors.New("commit log queue is full") )
Functions ¶
func Files ¶ added in v0.4.0
func Files(opts Options) ([]File, []ErrorWithPath, error)
Files returns a slice of all available commit log files on disk along with their associated metadata.
func NewIterator ¶
func NewIterator(iterOpts IteratorOpts) (iter Iterator, corruptFiles []ErrorWithPath, err error)
NewIterator creates a new commit log iterator
Types ¶
type CommitLog ¶
type CommitLog interface { // Open the commit log Open() error // Write will write an entry in the commit log for a given series Write( ctx context.Context, series ts.Series, datapoint ts.Datapoint, unit xtime.Unit, annotation ts.Annotation, ) error // WriteBatch is the same as Write, but in batch. WriteBatch( ctx context.Context, writes ts.WriteBatch, ) error // Close the commit log Close() error // ActiveLogs returns a slice of the active commitlogs. ActiveLogs() ([]File, error) // RotateLogs rotates the commitlog and returns the File that represents // the new commitlog file. RotateLogs() (File, error) }
CommitLog provides a synchronized commit log
func NewCommitLog ¶
NewCommitLog creates a new commit log
type ErrorWithPath ¶ added in v0.4.8
type ErrorWithPath struct {
// contains filtered or unexported fields
}
ErrorWithPath is an error that includes the path of the file that had the error.
func NewErrorWithPath ¶ added in v0.4.8
func NewErrorWithPath(err error, path string) ErrorWithPath
NewErrorWithPath creates a new ErrorWithPath.
func (ErrorWithPath) Error ¶ added in v0.4.8
func (e ErrorWithPath) Error() string
Error returns the error.
func (ErrorWithPath) Path ¶ added in v0.4.8
func (e ErrorWithPath) Path() string
Path returns the path of the file that the error is associated with.
type FileFilterPredicate ¶
FileFilterPredicate is a predicate that allows the caller to determine which commitlogs the iterator should read from.
func ReadAllPredicate ¶
func ReadAllPredicate() FileFilterPredicate
ReadAllPredicate can be passed as the ReadCommitLogPredicate for callers that want a convenient way to read all the commitlogs
type Iterator ¶
type Iterator interface { // Next returns whether the iterator has the next value Next() bool // Current returns the current commit log entry Current() (ts.Series, ts.Datapoint, xtime.Unit, ts.Annotation) // Err returns an error if an error occurred Err() error // Close the iterator Close() }
Iterator provides an iterator for commit logs
type IteratorOpts ¶
type IteratorOpts struct { CommitLogOptions Options FileFilterPredicate FileFilterPredicate SeriesFilterPredicate SeriesFilterPredicate }
IteratorOpts is a struct that contains coptions for the Iterator
type MockCommitLog ¶
type MockCommitLog struct {
// contains filtered or unexported fields
}
MockCommitLog is a mock of CommitLog interface
func NewMockCommitLog ¶
func NewMockCommitLog(ctrl *gomock.Controller) *MockCommitLog
NewMockCommitLog creates a new mock instance
func (*MockCommitLog) ActiveLogs ¶ added in v0.4.8
func (m *MockCommitLog) ActiveLogs() ([]File, error)
ActiveLogs mocks base method
func (*MockCommitLog) EXPECT ¶
func (m *MockCommitLog) EXPECT() *MockCommitLogMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCommitLog) RotateLogs ¶ added in v0.4.8
func (m *MockCommitLog) RotateLogs() (File, error)
RotateLogs mocks base method
func (*MockCommitLog) Write ¶
func (m *MockCommitLog) Write(ctx context.Context, series ts.Series, datapoint ts.Datapoint, unit time0.Unit, annotation ts.Annotation) error
Write mocks base method
func (*MockCommitLog) WriteBatch ¶ added in v0.4.8
func (m *MockCommitLog) WriteBatch(ctx context.Context, writes ts.WriteBatch) error
WriteBatch mocks base method
type MockCommitLogMockRecorder ¶
type MockCommitLogMockRecorder struct {
// contains filtered or unexported fields
}
MockCommitLogMockRecorder is the mock recorder for MockCommitLog
func (*MockCommitLogMockRecorder) ActiveLogs ¶ added in v0.4.8
func (mr *MockCommitLogMockRecorder) ActiveLogs() *gomock.Call
ActiveLogs indicates an expected call of ActiveLogs
func (*MockCommitLogMockRecorder) Close ¶
func (mr *MockCommitLogMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockCommitLogMockRecorder) Open ¶
func (mr *MockCommitLogMockRecorder) Open() *gomock.Call
Open indicates an expected call of Open
func (*MockCommitLogMockRecorder) RotateLogs ¶ added in v0.4.8
func (mr *MockCommitLogMockRecorder) RotateLogs() *gomock.Call
RotateLogs indicates an expected call of RotateLogs
func (*MockCommitLogMockRecorder) Write ¶
func (mr *MockCommitLogMockRecorder) Write(ctx, series, datapoint, unit, annotation interface{}) *gomock.Call
Write indicates an expected call of Write
func (*MockCommitLogMockRecorder) WriteBatch ¶ added in v0.4.8
func (mr *MockCommitLogMockRecorder) WriteBatch(ctx, writes interface{}) *gomock.Call
WriteBatch indicates an expected call of WriteBatch
type MockIterator ¶
type MockIterator struct {
// contains filtered or unexported fields
}
MockIterator is a mock of Iterator interface
func NewMockIterator ¶
func NewMockIterator(ctrl *gomock.Controller) *MockIterator
NewMockIterator creates a new mock instance
func (*MockIterator) Current ¶
func (m *MockIterator) Current() (ts.Series, ts.Datapoint, time0.Unit, ts.Annotation)
Current mocks base method
func (*MockIterator) EXPECT ¶
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIteratorMockRecorder ¶
type MockIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIteratorMockRecorder is the mock recorder for MockIterator
func (*MockIteratorMockRecorder) Close ¶
func (mr *MockIteratorMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockIteratorMockRecorder) Current ¶
func (mr *MockIteratorMockRecorder) Current() *gomock.Call
Current indicates an expected call of Current
func (*MockIteratorMockRecorder) Err ¶
func (mr *MockIteratorMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockIteratorMockRecorder) Next ¶
func (mr *MockIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next
type MockOptions ¶
type MockOptions struct {
// contains filtered or unexported fields
}
MockOptions is a mock of Options interface
func NewMockOptions ¶
func NewMockOptions(ctrl *gomock.Controller) *MockOptions
NewMockOptions creates a new mock instance
func (*MockOptions) BacklogQueueChannelSize ¶ added in v0.4.8
func (m *MockOptions) BacklogQueueChannelSize() int
BacklogQueueChannelSize mocks base method
func (*MockOptions) BacklogQueueSize ¶
func (m *MockOptions) BacklogQueueSize() int
BacklogQueueSize mocks base method
func (*MockOptions) BlockSize ¶
func (m *MockOptions) BlockSize() time.Duration
BlockSize mocks base method
func (*MockOptions) BytesPool ¶
func (m *MockOptions) BytesPool() pool.CheckedBytesPool
BytesPool mocks base method
func (*MockOptions) ClockOptions ¶
func (m *MockOptions) ClockOptions() clock.Options
ClockOptions mocks base method
func (*MockOptions) EXPECT ¶
func (m *MockOptions) EXPECT() *MockOptionsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOptions) FilesystemOptions ¶
func (m *MockOptions) FilesystemOptions() fs.Options
FilesystemOptions mocks base method
func (*MockOptions) FlushInterval ¶
func (m *MockOptions) FlushInterval() time.Duration
FlushInterval mocks base method
func (*MockOptions) IdentifierPool ¶
func (m *MockOptions) IdentifierPool() ident.Pool
IdentifierPool mocks base method
func (*MockOptions) InstrumentOptions ¶
func (m *MockOptions) InstrumentOptions() instrument.Options
InstrumentOptions mocks base method
func (*MockOptions) ReadConcurrency ¶
func (m *MockOptions) ReadConcurrency() int
ReadConcurrency mocks base method
func (*MockOptions) SetBacklogQueueChannelSize ¶ added in v0.4.8
func (m *MockOptions) SetBacklogQueueChannelSize(value int) Options
SetBacklogQueueChannelSize mocks base method
func (*MockOptions) SetBacklogQueueSize ¶
func (m *MockOptions) SetBacklogQueueSize(value int) Options
SetBacklogQueueSize mocks base method
func (*MockOptions) SetBlockSize ¶
func (m *MockOptions) SetBlockSize(value time.Duration) Options
SetBlockSize mocks base method
func (*MockOptions) SetBytesPool ¶
func (m *MockOptions) SetBytesPool(value pool.CheckedBytesPool) Options
SetBytesPool mocks base method
func (*MockOptions) SetClockOptions ¶
func (m *MockOptions) SetClockOptions(value clock.Options) Options
SetClockOptions mocks base method
func (*MockOptions) SetFilesystemOptions ¶
func (m *MockOptions) SetFilesystemOptions(value fs.Options) Options
SetFilesystemOptions mocks base method
func (*MockOptions) SetFlushInterval ¶
func (m *MockOptions) SetFlushInterval(value time.Duration) Options
SetFlushInterval mocks base method
func (*MockOptions) SetFlushSize ¶
func (m *MockOptions) SetFlushSize(value int) Options
SetFlushSize mocks base method
func (*MockOptions) SetIdentifierPool ¶
func (m *MockOptions) SetIdentifierPool(value ident.Pool) Options
SetIdentifierPool mocks base method
func (*MockOptions) SetInstrumentOptions ¶
func (m *MockOptions) SetInstrumentOptions(value instrument.Options) Options
SetInstrumentOptions mocks base method
func (*MockOptions) SetReadConcurrency ¶
func (m *MockOptions) SetReadConcurrency(concurrency int) Options
SetReadConcurrency mocks base method
func (*MockOptions) SetStrategy ¶
func (m *MockOptions) SetStrategy(value Strategy) Options
SetStrategy mocks base method
type MockOptionsMockRecorder ¶
type MockOptionsMockRecorder struct {
// contains filtered or unexported fields
}
MockOptionsMockRecorder is the mock recorder for MockOptions
func (*MockOptionsMockRecorder) BacklogQueueChannelSize ¶ added in v0.4.8
func (mr *MockOptionsMockRecorder) BacklogQueueChannelSize() *gomock.Call
BacklogQueueChannelSize indicates an expected call of BacklogQueueChannelSize
func (*MockOptionsMockRecorder) BacklogQueueSize ¶
func (mr *MockOptionsMockRecorder) BacklogQueueSize() *gomock.Call
BacklogQueueSize indicates an expected call of BacklogQueueSize
func (*MockOptionsMockRecorder) BlockSize ¶
func (mr *MockOptionsMockRecorder) BlockSize() *gomock.Call
BlockSize indicates an expected call of BlockSize
func (*MockOptionsMockRecorder) BytesPool ¶
func (mr *MockOptionsMockRecorder) BytesPool() *gomock.Call
BytesPool indicates an expected call of BytesPool
func (*MockOptionsMockRecorder) ClockOptions ¶
func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call
ClockOptions indicates an expected call of ClockOptions
func (*MockOptionsMockRecorder) FilesystemOptions ¶
func (mr *MockOptionsMockRecorder) FilesystemOptions() *gomock.Call
FilesystemOptions indicates an expected call of FilesystemOptions
func (*MockOptionsMockRecorder) FlushInterval ¶
func (mr *MockOptionsMockRecorder) FlushInterval() *gomock.Call
FlushInterval indicates an expected call of FlushInterval
func (*MockOptionsMockRecorder) FlushSize ¶
func (mr *MockOptionsMockRecorder) FlushSize() *gomock.Call
FlushSize indicates an expected call of FlushSize
func (*MockOptionsMockRecorder) IdentifierPool ¶
func (mr *MockOptionsMockRecorder) IdentifierPool() *gomock.Call
IdentifierPool indicates an expected call of IdentifierPool
func (*MockOptionsMockRecorder) InstrumentOptions ¶
func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call
InstrumentOptions indicates an expected call of InstrumentOptions
func (*MockOptionsMockRecorder) ReadConcurrency ¶
func (mr *MockOptionsMockRecorder) ReadConcurrency() *gomock.Call
ReadConcurrency indicates an expected call of ReadConcurrency
func (*MockOptionsMockRecorder) SetBacklogQueueChannelSize ¶ added in v0.4.8
func (mr *MockOptionsMockRecorder) SetBacklogQueueChannelSize(value interface{}) *gomock.Call
SetBacklogQueueChannelSize indicates an expected call of SetBacklogQueueChannelSize
func (*MockOptionsMockRecorder) SetBacklogQueueSize ¶
func (mr *MockOptionsMockRecorder) SetBacklogQueueSize(value interface{}) *gomock.Call
SetBacklogQueueSize indicates an expected call of SetBacklogQueueSize
func (*MockOptionsMockRecorder) SetBlockSize ¶
func (mr *MockOptionsMockRecorder) SetBlockSize(value interface{}) *gomock.Call
SetBlockSize indicates an expected call of SetBlockSize
func (*MockOptionsMockRecorder) SetBytesPool ¶
func (mr *MockOptionsMockRecorder) SetBytesPool(value interface{}) *gomock.Call
SetBytesPool indicates an expected call of SetBytesPool
func (*MockOptionsMockRecorder) SetClockOptions ¶
func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call
SetClockOptions indicates an expected call of SetClockOptions
func (*MockOptionsMockRecorder) SetFilesystemOptions ¶
func (mr *MockOptionsMockRecorder) SetFilesystemOptions(value interface{}) *gomock.Call
SetFilesystemOptions indicates an expected call of SetFilesystemOptions
func (*MockOptionsMockRecorder) SetFlushInterval ¶
func (mr *MockOptionsMockRecorder) SetFlushInterval(value interface{}) *gomock.Call
SetFlushInterval indicates an expected call of SetFlushInterval
func (*MockOptionsMockRecorder) SetFlushSize ¶
func (mr *MockOptionsMockRecorder) SetFlushSize(value interface{}) *gomock.Call
SetFlushSize indicates an expected call of SetFlushSize
func (*MockOptionsMockRecorder) SetIdentifierPool ¶
func (mr *MockOptionsMockRecorder) SetIdentifierPool(value interface{}) *gomock.Call
SetIdentifierPool indicates an expected call of SetIdentifierPool
func (*MockOptionsMockRecorder) SetInstrumentOptions ¶
func (mr *MockOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call
SetInstrumentOptions indicates an expected call of SetInstrumentOptions
func (*MockOptionsMockRecorder) SetReadConcurrency ¶
func (mr *MockOptionsMockRecorder) SetReadConcurrency(concurrency interface{}) *gomock.Call
SetReadConcurrency indicates an expected call of SetReadConcurrency
func (*MockOptionsMockRecorder) SetStrategy ¶
func (mr *MockOptionsMockRecorder) SetStrategy(value interface{}) *gomock.Call
SetStrategy indicates an expected call of SetStrategy
func (*MockOptionsMockRecorder) Strategy ¶
func (mr *MockOptionsMockRecorder) Strategy() *gomock.Call
Strategy indicates an expected call of Strategy
func (*MockOptionsMockRecorder) Validate ¶
func (mr *MockOptionsMockRecorder) Validate() *gomock.Call
Validate indicates an expected call of Validate
type Options ¶
type Options interface { // Validate validates the Options. Validate() error // SetClockOptions sets the clock options. SetClockOptions(value clock.Options) Options // ClockOptions returns the clock options. ClockOptions() clock.Options // SetInstrumentOptions sets the instrumentation options. SetInstrumentOptions(value instrument.Options) Options // InstrumentOptions returns the instrumentation options, InstrumentOptions() instrument.Options // SetBlockSize sets the block size. SetBlockSize(value time.Duration) Options // BlockSize returns the block size. BlockSize() time.Duration // SetFilesystemOptions sets the filesystem options. SetFilesystemOptions(value fs.Options) Options // FilesystemOptions returns the filesystem options. FilesystemOptions() fs.Options // SetFlushSize sets the flush size. SetFlushSize(value int) Options // FlushSize returns the flush size. FlushSize() int // SetStrategy sets the strategy. SetStrategy(value Strategy) Options // Strategy returns the strategy. Strategy() Strategy // SetFlushInterval sets the flush interval. SetFlushInterval(value time.Duration) Options // FlushInterval returns the flush interval. FlushInterval() time.Duration // SetBacklogQueueSize sets the backlog queue size. SetBacklogQueueSize(value int) Options // BacklogQueueSize returns the backlog queue size. BacklogQueueSize() int // SetBacklogQueueChannelSize sets the size of the Golang channel // that backs the queue. SetBacklogQueueChannelSize(value int) Options // BacklogQueueChannelSize returns the size of the Golang channel // that backs the queue. BacklogQueueChannelSize() int // SetBytesPool sets the checked bytes pool. SetBytesPool(value pool.CheckedBytesPool) Options // BytesPool returns the checked bytes pool. BytesPool() pool.CheckedBytesPool // SetReadConcurrency sets the concurrency of the reader. SetReadConcurrency(concurrency int) Options // ReadConcurrency returns the concurrency of the reader. ReadConcurrency() int // SetIdentifierPool sets the IdentifierPool to use for pooling identifiers. SetIdentifierPool(value ident.Pool) Options // IdentifierPool returns the IdentifierPool to use for pooling identifiers. IdentifierPool() ident.Pool }
Options represents the options for the commit log.
type SeriesFilterPredicate ¶
SeriesFilterPredicate is a predicate that determines whether datapoints for a given series should be returned from the Commit log reader. The predicate is pushed down to the reader level to prevent having to run the same function for every datapoint for a given series.
func ReadAllSeriesPredicate ¶
func ReadAllSeriesPredicate() SeriesFilterPredicate
ReadAllSeriesPredicate can be passed as the seriesPredicate for callers that want a convenient way to read all series in the commitlogs
type Strategy ¶
type Strategy int
Strategy describes the commit log writing strategy
const ( // StrategyWriteWait describes the strategy that waits // for the buffered commit log chunk that contains a write to flush // before acknowledging a write StrategyWriteWait Strategy = iota // StrategyWriteBehind describes the strategy that does not wait // for the buffered commit log chunk that contains a write to flush // before acknowledging a write StrategyWriteBehind )