[go: up one dir, main page]

meta

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: AGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package meta maintains the caching of all meta data of the files and directories.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSuchObject = errors.New("No such object")

ErrNoSuchObject - returned when object is not found.

Functions

func IsNoSuchObject

func IsNoSuchObject(err error) bool

IsNoSuchObject - is err ErrNoSuchObject ?

func RegisterExt

func RegisterExt(id int8, value interface{}) interface{}

RegisterExt -

Types

type Bucket

type Bucket struct {
	InnerBucket *bbolt.Bucket
}

Bucket -

func (*Bucket) Bucket

func (b *Bucket) Bucket(name string) *Bucket

Bucket -

func (*Bucket) CreateBucketIfNotExists

func (b *Bucket) CreateBucketIfNotExists(key string) (*Bucket, error)

CreateBucketIfNotExists -

func (*Bucket) Delete

func (b *Bucket) Delete(key string) error

Delete -

func (*Bucket) DeleteBucket

func (b *Bucket) DeleteBucket(key string) error

DeleteBucket -

func (*Bucket) ForEach

func (b *Bucket) ForEach(fn func(string, interface{}) error) error

ForEach -

func (*Bucket) Get

func (b *Bucket) Get(key string, v ...interface{}) error

Get -

func (*Bucket) NextSequence

func (b *Bucket) NextSequence() (uint64, error)

NextSequence -

func (*Bucket) Put

func (b *Bucket) Put(key string, v interface{}) error

Put -

type DB

type DB struct {
	*bbolt.DB
}

DB -

func Open

func Open(path string, mode os.FileMode, options *bbolt.Options) (*DB, error)

Open -

func (*DB) Begin

func (db *DB) Begin(writable bool) (*Tx, error)

Begin -

func (*DB) Update

func (db *DB) Update(fn func(*Tx) error) error

Update -

func (*DB) View

func (db *DB) View(fn func(*Tx) error) error

View -

type Tx

type Tx struct {
	*bbolt.Tx
}

Tx - transaction struct.

func (*Tx) Bucket

func (tx *Tx) Bucket(name string) *Bucket

Bucket -

Jump to

Keyboard shortcuts

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