bolt

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaStore

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

func NewMetaStore

func NewMetaStore(filename string, noSync bool) (s *MetaStore, err error)

func (*MetaStore) Close

func (s *MetaStore) Close() (err error)

func (*MetaStore) Count added in v0.1.1

func (s *MetaStore) Count() (count int, err error)

func (*MetaStore) FreeOffset

func (s *MetaStore) FreeOffset(shard uint8) (offset int64, err error)

func (*MetaStore) Get

func (s *MetaStore) Get(addr chunk.Address) (m *forky.Meta, err error)

func (*MetaStore) Iterate added in v0.1.2

func (s *MetaStore) Iterate(fn func(chunk.Address, *forky.Meta) (stop bool, err error)) (err error)

func (*MetaStore) Remove

func (s *MetaStore) Remove(addr chunk.Address, shard uint8) (err error)

func (*MetaStore) Set

func (s *MetaStore) Set(addr chunk.Address, shard uint8, reclaimed bool, m *forky.Meta) (err error)

Jump to

Keyboard shortcuts

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