Versions in this module Expand all Collapse all v0 v0.1.2 Sep 9, 2022 v0.1.1 Aug 31, 2022 Changes in this version + var ErrOffsetOutOfRange = errors.New("the requested offset is outside the log's range") + type Config struct + Segment struct{ ... } + type Log struct + Config Config + Dir string + func NewLog(dir string, c Config) (*Log, error) + 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 struct + Offset uint64 + Value interface{}