storage

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db basedb.Database, prefix string) qbftstorage.QBFTStore

New create new ibft storage

Types

type QBFTStores added in v0.4.0

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

QBFTStores wraps sync map with cast functions to qbft store

func NewStores added in v0.4.0

func NewStores() *QBFTStores

func NewStoresFromRoles added in v0.4.0

func NewStoresFromRoles(db basedb.Database, roles ...spectypes.BeaconRole) *QBFTStores

func (*QBFTStores) Add added in v0.4.0

func (qs *QBFTStores) Add(role spectypes.BeaconRole, store qbftstorage.QBFTStore)

Add store to sync map by role as a key

func (*QBFTStores) Each added in v1.1.0

func (qs *QBFTStores) Each(f func(role spectypes.BeaconRole, store qbftstorage.QBFTStore) error) error

Each iterates over all stores and calls the given function

func (*QBFTStores) Get added in v0.4.0

Get store from sync map by role type

Jump to

Keyboard shortcuts

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