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: 0

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