package wal

Import Path
	github.com/polarsignals/frostdb/wal (on go.dev)

Dependency Relation
	imports 17 packages, and imported by one package

Involved Source Files wal.go
Package-Level Type Names (total 6)
/* sort by: | */
(*FileWAL) Close() error (*FileWAL) FirstIndex() (uint64, error) (*FileWAL) LastIndex() (uint64, error) (*FileWAL) Log(tx uint64, record *walpb.Record) error (*FileWAL) LogRecord(tx uint64, table string, record arrow.Record) error (*FileWAL) Replay(tx uint64, handler ReplayHandlerFunc) (err error) (*FileWAL) Reset(nextTx uint64) error (*FileWAL) RunAsync() Truncate queues a truncation of the WAL at the given tx. Note that the truncation will be performed asynchronously. A nil error does not indicate a successful truncation. *FileWAL : github.com/polarsignals/frostdb.WAL *FileWAL : github.com/prometheus/common/expfmt.Closer *FileWAL : io.Closer func Open(logger log.Logger, path string, opts ...Option) (*FileWAL, error)
(*NopWAL) Close() error (*NopWAL) FirstIndex() (uint64, error) (*NopWAL) LastIndex() (uint64, error) (*NopWAL) Log(_ uint64, _ *walpb.Record) error (*NopWAL) LogRecord(_ uint64, _ string, _ arrow.Record) error (*NopWAL) Replay(_ uint64, _ ReplayHandlerFunc) error (*NopWAL) Reset(_ uint64) error (*NopWAL) Truncate(_ uint64) error *NopWAL : github.com/polarsignals/frostdb.WAL *NopWAL : github.com/prometheus/common/expfmt.Closer *NopWAL : io.Closer
func WithMetrics(m *Metrics) Option func WithStoreMetrics(m *wal.Metrics) Option func WithTestingCallbackWithDroppedLogsOnClose(cb func([]types.LogEntry)) Option func WithTestingLogStoreWrapper(newLogStoreWrapper func(wal.LogStore) wal.LogStore) Option func WithTestingLoopTicker(t Ticker) Option func Open(logger log.Logger, path string, opts ...Option) (*FileWAL, error) func github.com/polarsignals/frostdb.WithTestingWalOptions(opts ...Option) frostdb.TestingOption
func (*FileWAL).Replay(tx uint64, handler ReplayHandlerFunc) (err error) func (*NopWAL).Replay(_ uint64, _ ReplayHandlerFunc) error func github.com/polarsignals/frostdb.WAL.Replay(tx uint64, handler ReplayHandlerFunc) error
( Ticker) C() <-chan time.Time ( Ticker) Stop() func WithTestingLoopTicker(t Ticker) Option
Package-Level Functions (total 6)
func Open(logger log.Logger, path string, opts ...Option) (*FileWAL, error)
WithTestingCallbackWithDroppedLogsOnClose is called when the WAL times out on close with all the entries that could not be written.
func WithTestingLogStoreWrapper(newLogStoreWrapper func(wal.LogStore) wal.LogStore) Option
WithTestingLoopTicker allows the caller to force processing of pending WAL entries by providing a custom ticker implementation.