data

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Accessor    DBAccessor
	DB          *bolt.DB
	Transformer *modeltransformer.Transformer
}

type DBAccessor

type DBAccessor struct{}

func (DBAccessor) GetBucket

func (DBAccessor) GetBucket(tx *bolt.Tx, name string, nested ...string) (*bolt.Bucket, error)

func (DBAccessor) GetObject

func (DBAccessor) GetObject(tx *bolt.Tx, bucketName, id string, out interface{}) error

func (DBAccessor) PutObject

func (DBAccessor) PutObject(bucket *bolt.Bucket, key string, obj interface{}) error

func (DBAccessor) Walk

func (DBAccessor) Walk(bucket *bolt.Bucket, callback func(id string, data []byte) error) error

func (DBAccessor) WalkPrefix

func (DBAccessor) WalkPrefix(bucket *bolt.Bucket, prefix string, callback func(id string, data []byte) error) error

Jump to

Keyboard shortcuts

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