node

package
v0.72.3 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCPUUsagePercent

func GetCPUUsagePercent(n *Node, interval time.Duration) (uint64, error)

Types

type Node

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

Node represents a network node with RQLite database

func NewNode

func NewNode(cfg *config.Config) (*Node, error)

NewNode creates a new network node

func (*Node) GetClusterHealth added in v0.53.2

func (n *Node) GetClusterHealth() map[string]interface{}

GetClusterHealth returns cluster health information

func (*Node) GetDiscoveryStatus added in v0.53.2

func (n *Node) GetDiscoveryStatus() map[string]interface{}

GetDiscoveryStatus returns discovery service status

func (*Node) GetPeerID

func (n *Node) GetPeerID() string

GetPeerID returns the peer ID of this node

func (*Node) Start

func (n *Node) Start(ctx context.Context) error

Starts the network node

func (*Node) Stop

func (n *Node) Stop() error

getListenAddresses returns the current listen addresses as strings Stop stops the node and all its services

Jump to

Keyboard shortcuts

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