Documentation ¶
Index ¶
- type MemDB
- func (db *MemDB) StoreExternal(ctx context.Context, duty core.Duty, signedSet core.ParSignedDataSet) error
- func (db *MemDB) StoreInternal(ctx context.Context, duty core.Duty, signedSet core.ParSignedDataSet) error
- func (db *MemDB) SubscribeInternal(fn func(context.Context, core.Duty, core.ParSignedDataSet) error)
- func (db *MemDB) SubscribeThreshold(fn func(context.Context, core.Duty, core.PubKey, []core.ParSignedData) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
MemDB is a placeholder in-memory partial signature database. It will be replaced with a BadgerDB implementation.
func (*MemDB) StoreExternal ¶
func (db *MemDB) StoreExternal(ctx context.Context, duty core.Duty, signedSet core.ParSignedDataSet) error
StoreExternal stores an externally received partially signed duty data set.
func (*MemDB) StoreInternal ¶
func (db *MemDB) StoreInternal(ctx context.Context, duty core.Duty, signedSet core.ParSignedDataSet) error
StoreInternal stores an internally received partially signed duty data set.
func (*MemDB) SubscribeInternal ¶
func (db *MemDB) SubscribeInternal(fn func(context.Context, core.Duty, core.ParSignedDataSet) error)
SubscribeInternal registers a callback when an internal partially signed duty set is stored.
Click to show internal directories.
Click to hide internal directories.