aggsigdb

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStopped = errors.New("database stopped")

Functions

This section is empty.

Types

type MemDB

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

MemDB is a basic memory implementation of core.AggSigDB.

func NewMemDB

func NewMemDB() *MemDB

NewMemDB creates a basic memory based AggSigDB.

func (*MemDB) Await

func (db *MemDB) Await(ctx context.Context, duty core.Duty, pubKey core.PubKey) (core.SignedData, error)

Await implements core.AggSigDB, see its godoc.

func (*MemDB) Run

func (db *MemDB) Run(ctx context.Context)

Run blocks and runs the database process until the context is cancelled.

func (*MemDB) Store

func (db *MemDB) Store(ctx context.Context, duty core.Duty, pubKey core.PubKey, data core.SignedData) error

Store implements core.AggSigDB, see its godoc.

type Stub

type Stub struct{}

Stub implements core.AggSigDB without any logic.

func (Stub) Await

func (Stub) Store

Jump to

Keyboard shortcuts

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