boltdb

package
v0.0.0-...-ab75566 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bolt

type Bolt struct {
	DB *bolt.DB
	// contains filtered or unexported fields
}

func New

func New(f, b string) *Bolt

func (*Bolt) AllCommitted

func (b *Bolt) AllCommitted() ([]*store.Item, error)

func (*Bolt) AllDirty

func (b *Bolt) AllDirty() ([]*store.Item, error)

func (*Bolt) AllNewerCommitted

func (b *Bolt) AllNewerCommitted(verByKey map[string]uint64) ([]*store.Item, error)

func (*Bolt) AllNewerDirty

func (b *Bolt) AllNewerDirty(verByKey map[string]uint64) ([]*store.Item, error)

func (*Bolt) Commit

func (b *Bolt) Commit(key string, version uint64) error

func (*Bolt) Connect

func (b *Bolt) Connect() error

func (*Bolt) Read

func (b *Bolt) Read(key string) (*store.Item, error)

func (*Bolt) ReadVersion

func (b *Bolt) ReadVersion(key string, version uint64) (*store.Item, error)

func (*Bolt) Write

func (b *Bolt) Write(key string, val []byte, version uint64) error

Jump to

Keyboard shortcuts

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