Documentation
¶
Overview ¶
Package lm2log implements a commit log on top of lm2.
Index ¶
- Variables
- type Log
- func (l *Log) Close()
- func (l *Log) Commit() error
- func (l *Log) Committed() (uint64, error)
- func (l *Log) Compact(recordsToKeep uint) error
- func (l *Log) Destroy() error
- func (l *Log) Get(record uint64) (string, error)
- func (l *Log) Prepare(data string) error
- func (l *Log) Prepared() (uint64, error)
- func (l *Log) Rollback() error
- func (l *Log) SetCommitted(record uint64, data string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("lm2log: not found")
)
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a commit log. NOTE: It is *not* goroutine-safe.
func (*Log) Compact ¶ added in v1.1.0
Compact compacts the log and keeps up to recordsToKeep records.
Click to show internal directories.
Click to hide internal directories.