node

package
v0.0.128 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeID   uint64
	NodeName string
	API      string
	URL      string
}

func NewNode

func NewNode() *Node

func (*Node) ToJson added in v0.0.128

func (node *Node) ToJson() ([]byte, error)

type Nodes

type Nodes struct {
	Nodes []*Node
}

func NewNodes

func NewNodes() *Nodes

func (*Nodes) Add

func (nodes *Nodes) Add(node *Node)

func (*Nodes) Find added in v0.0.128

func (nodes *Nodes) Find(node *Node) *Node

func (*Nodes) NewNode

func (nodes *Nodes) NewNode(nodeName string, url string, API string) *Node

func (*Nodes) NewNodeRequest

func (nodes *Nodes) NewNodeRequest(body io.ReadCloser, id uint64) (*Node, error)

func (*Nodes) Remove

func (nodes *Nodes) Remove(node *Node)

func (*Nodes) ToString

func (nodes *Nodes) ToString() []string

Jump to

Keyboard shortcuts

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