Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
func (qs *QBFTStores) Get(role spectypes.BeaconRole) qbftstorage.QBFTStore
Get store from sync map by role type
Click to show internal directories.
Click to hide internal directories.