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)
(*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)
FailedLogs prometheus.Counter
LastTruncationAt prometheus.Gauge
WalCloseTimeouts prometheus.Counter
WalQueueSize prometheus.Gauge
WalRepairs prometheus.Counter
WalRepairsLostRecords prometheus.Counter
func WithMetrics(m *Metrics) Option
(*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
Package-Level Functions (total 6)
func WithMetrics(m *Metrics) Option func WithStoreMetrics(m *wal.Metrics) Option
WithTestingCallbackWithDroppedLogsOnClose is called when the WAL times out on
close with all the entries that could not be written.
WithTestingLoopTicker allows the caller to force processing of pending WAL
entries by providing a custom ticker implementation.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |