db

package
v0.0.0-...-2926831 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BucketCards     = "CardKeys"
	BucketDASConfig = "DASConfig"

	PrivateDasKey = "PrivateDasKey"
	PublicDasKey  = "PublicDasKey"
	DasIdentifier = "DasIdentifier"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Path string
	// contains filtered or unexported fields
}

func (*DB) Close

func (s *DB) Close() error

func (*DB) Find

func (s *DB) Find(bucket, key string) []byte

func (*DB) FindCard

func (s *DB) FindCard(cardId string) []byte

func (*DB) GetDasId

func (s *DB) GetDasId() string

func (*DB) Open

func (s *DB) Open() error

func (*DB) PrivateDasKey

func (s *DB) PrivateDasKey() []byte

func (*DB) PublicDasKey

func (s *DB) PublicDasKey() []byte

func (*DB) Save

func (s *DB) Save(bucket, key string, value []byte) error

func (*DB) SaveCard

func (s *DB) SaveCard(cardId string, cardData []byte) error

Jump to

Keyboard shortcuts

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