db

package
v2.6.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameIdent = "peername"
)

Variables

This section is empty.

Functions

func Pathname

func Pathname(dbPrefix string) string

Types

type BoltDB

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

func NewBoltDB

func NewBoltDB(dbPrefix string) (*BoltDB, error)

func NewBoltDBReadOnly added in v1.9.0

func NewBoltDBReadOnly(dbPrefix string) (*BoltDB, error)

func (*BoltDB) Close

func (d *BoltDB) Close() error

func (*BoltDB) Load

func (d *BoltDB) Load(ident string, data interface{}) (bool, error)

func (*BoltDB) Save

func (d *BoltDB) Save(ident string, data interface{}) error

type DB

type DB interface {
	Load(string, interface{}) (bool, error)
	Save(string, interface{}) error
}

Jump to

Keyboard shortcuts

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