Documentation ¶
Index ¶
- type FileWAL
- func (w *FileWAL) Close() error
- func (w *FileWAL) FirstIndex() (uint64, error)
- func (w *FileWAL) LastIndex() (uint64, error)
- func (w *FileWAL) Log(tx uint64, record *walpb.Record) error
- func (w *FileWAL) LogRecord(tx uint64, table string, record arrow.Record) error
- func (w *FileWAL) Replay(tx uint64, handler ReplayHandlerFunc) (err error)
- func (w *FileWAL) Reset(nextTx uint64) error
- func (w *FileWAL) RunAsync()
- func (w *FileWAL) Truncate(tx uint64) error
- type Metrics
- type NopWAL
- func (w *NopWAL) Close() error
- func (w *NopWAL) FirstIndex() (uint64, error)
- func (w *NopWAL) LastIndex() (uint64, error)
- func (w *NopWAL) Log(_ uint64, _ *walpb.Record) error
- func (w *NopWAL) LogRecord(_ uint64, _ string, _ arrow.Record) error
- func (w *NopWAL) Replay(_ uint64, _ ReplayHandlerFunc) error
- func (w *NopWAL) Reset(_ uint64) error
- func (w *NopWAL) Truncate(_ uint64) error
- type Option
- type ReplayHandlerFunc
- type Ticker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWAL ¶
type FileWAL struct {
// contains filtered or unexported fields
}
func (*FileWAL) FirstIndex ¶
type Metrics ¶
type Metrics struct { FailedLogs prometheus.Counter LastTruncationAt prometheus.Gauge WalRepairs prometheus.Counter WalRepairsLostRecords prometheus.Counter WalCloseTimeouts prometheus.Counter WalQueueSize prometheus.Gauge }
type Option ¶
type Option func(*FileWAL)
func WithMetrics ¶
func WithStoreMetrics ¶
func WithTestingCallbackWithDroppedLogsOnClose ¶
WithTestingCallbackWithDroppedLogsOnClose is called when the WAL times out on close with all the entries that could not be written.
func WithTestingLoopTicker ¶
WithTestingLoopTicker allows the caller to force processing of pending WAL entries by providing a custom ticker implementation.
Click to show internal directories.
Click to hide internal directories.