portal

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PortalProtocolConfig  *portalwire.PortalProtocolConfig
	PrivateKey            *ecdsa.PrivateKey
	IsGnetEnabled         bool
	RpcAddr               string
	DataDir               string
	DataCapacity          uint64
	LogLevel              int
	Networks              []string
	Metrics               *metrics.Config
	DisableTableInitCheck bool
}

Config holds configuration for the Shisui client

func DefaultConfig

func DefaultConfig() *Config

type Node

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

Node represents a Shisui node with all its services

func NewNode

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

NewNode creates a new Node with the given config

func (*Node) Start

func (n *Node) Start() error

Start starts all node services

func (*Node) Stop

func (n *Node) Stop()

Stop gracefully stops all node services

func (*Node) Wait

func (n *Node) Wait()

Wait waits for the node to stop

Jump to

Keyboard shortcuts

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