Versions in this module Expand all Collapse all v0 v0.0.1 Nov 2, 2025 Changes in this version + type NodeDB struct + func NewNodeDB(ctx context.Context, database *db.Database, logger logrus.FieldLogger) *NodeDB + func (ndb *NodeDB) Close() error + func (ndb *NodeDB) Count() int + func (ndb *NodeDB) Delete(id node.ID) error + func (ndb *NodeDB) GetStats() NodeDBStats + func (ndb *NodeDB) List() []*node.Node + func (ndb *NodeDB) Load(id node.ID) (*node.Node, error) + func (ndb *NodeDB) LoadInactiveNodes(n int) []*node.Node + func (ndb *NodeDB) LoadLocalENR() ([]byte, error) + func (ndb *NodeDB) LoadRandomNodes(n int) []*node.Node + func (ndb *NodeDB) NodeExists(id node.ID) (bool, uint64) + func (ndb *NodeDB) StoreLocalENR(enrBytes []byte) error + func (ndb *NodeDB) UpdateLastActive(id node.ID, timestamp time.Time) error + func (ndb *NodeDB) UpdateLastSeen(id node.ID, timestamp time.Time) error + func (ndb *NodeDB) UpdateNodeENR(n *node.Node) error + func (ndb *NodeDB) UpdateNodeFull(n *node.Node) error + type NodeDBStats struct + FailedUpdates int64 + MergedUpdates int64 + OpenConnections int + ProcessedUpdates int64 + QueueSize int + TotalQueries int64 + Transactions int64