append_log

package
v0.0.0-...-cd2353e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Append-only, sequential, crash-safe log.

The main interesting feature is that the log supports multi-block atomic appends, which are implemented by atomically updating an on-disk header with the number of valid blocks in the log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func Init

func Init(diskSz uint64) (*Log, bool)

func Open

func Open() *Log

func (*Log) Append

func (log *Log) Append(bks []disk.Block) bool

func (*Log) Get

func (log *Log) Get(i uint64) (disk.Block, bool)

func (*Log) Reset

func (log *Log) Reset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL