Documentation
¶
Overview ¶
START: intro
Index ¶
- Variables
- type Config
- type Log
- func (l *Log) Append(record *Record) (uint64, error)
- func (l *Log) Close() error
- func (l *Log) GetLog(index uint64, out *Record) error
- func (l *Log) HighestOffset() (uint64, error)
- func (l *Log) LowestOffset() (uint64, error)
- func (l *Log) Read(off uint64) (*Record, error)
- func (l *Log) Reader() io.Reader
- func (l *Log) Remove() error
- func (l *Log) Reset() error
- func (l *Log) StoreLogs(records []*Record) error
- func (l *Log) Truncate(lowest uint64) error
- type Record
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOffsetOutOfRange = errors.New("the requested offset is outside the log's range")
)
Functions ¶
This section is empty.
Types ¶
type Log ¶
func (*Log) HighestOffset ¶
func (*Log) LowestOffset ¶
LowestOffset To know what nodes have the oldest and newest data and what nodes are falling behind and need to replicate.
Click to show internal directories.
Click to hide internal directories.