node

package
v0.0.98 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: GPL-3.0 Imports: 3 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
	URL    string
}

func NewNode

func NewNode() *Node

type Nodes

type Nodes struct {
	Nodes []*Node
}

func NewNodes

func NewNodes() *Nodes

func (*Nodes) Add

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

func (*Nodes) NewNode

func (nodes *Nodes) NewNode(url string) *Node

func (*Nodes) NewNodeRequest

func (nodes *Nodes) NewNodeRequest(body io.ReadCloser) (*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