Documentation
¶
Index ¶
- Variables
- type NodesRepo
- func (r *NodesRepo) GetNodeByPublicKey(ctx context.Context, pk *dht.PublicKey) (*models.Node, error)
- func (r *NodesRepo) GetNodeCount(ctx context.Context) (int64, error)
- func (r *NodesRepo) GetNodesWithStaleBootstrapInfo(ctx context.Context) ([]*models.Node, error)
- func (r *NodesRepo) GetResponsiveDHTNodes(ctx context.Context) ([]*dht.Node, error)
- func (r *NodesRepo) GetUnresponsiveDHTNodes(ctx context.Context, retryDelay time.Duration) ([]*dht.Node, error)
- func (r *NodesRepo) HasNodeByPublicKey(ctx context.Context, pk *dht.PublicKey) (bool, error)
- func (r *NodesRepo) PingDHTNode(ctx context.Context, node *dht.Node) error
- func (r *NodesRepo) PongDHTNode(ctx context.Context, node *dht.Node) error
- func (r *NodesRepo) TrackDHTNode(ctx context.Context, node *dht.Node) (*models.Node, error)
- func (r *NodesRepo) UpdateNodeInfo(ctx context.Context, addr *net.UDPAddr, motd string, version uint32) error
- func (r *NodesRepo) UpdateNodeInfoRequestTime(ctx context.Context, addrReqTimes map[int64]time.Time) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found: %w", sql.ErrNoRows)
Functions ¶
This section is empty.
Types ¶
type NodesRepo ¶
type NodesRepo struct {
// contains filtered or unexported fields
}
func (*NodesRepo) GetNodeByPublicKey ¶
func (*NodesRepo) GetNodeCount ¶
func (*NodesRepo) GetNodesWithStaleBootstrapInfo ¶
func (*NodesRepo) GetResponsiveDHTNodes ¶
func (*NodesRepo) GetUnresponsiveDHTNodes ¶
func (*NodesRepo) HasNodeByPublicKey ¶
func (*NodesRepo) PingDHTNode ¶
func (*NodesRepo) PongDHTNode ¶
func (*NodesRepo) TrackDHTNode ¶
func (*NodesRepo) UpdateNodeInfo ¶
Click to show internal directories.
Click to hide internal directories.