protobolt

package module
v0.0.0-...-5b63803 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 3 Imported by: 0

README

protobolt

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("object not found")

Functions

This section is empty.

Types

type DB

type DB struct {
	BoltDB *bbolt.DB
}

func (DB) Delete

func (db DB) Delete(e Entity) error

func (DB) ForEach

func (db DB) ForEach(e Entity, cb func(Entity) error) error

func (DB) Get

func (db DB) Get(e Entity) error

func (DB) Init

func (db DB) Init(entities ...Entity) error

func (DB) Save

func (db DB) Save(e Entity) error

type Entity

type Entity interface {
	proto.Message
	GetProtoBoltPK() []byte
}

Directories

Path Synopsis
cmd
proto
v1

Jump to

Keyboard shortcuts

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