node

package
v0.0.0-...-5008a81 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 11 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 {
	Storage *s.Storage
	Network *n.Network
}

func (*Node) GetFile

func (node *Node) GetFile(hash []byte) ([]byte, error)

func (*Node) GetPart

func (node *Node) GetPart(hash []byte) []byte

func (*Node) Init

func (node *Node) Init(storage_path string, http_port string, udp_port string, tcp_port string)

func (*Node) RelayFile

func (node *Node) RelayFile(part_table [][]byte)

func (*Node) RelayPart

func (node *Node) RelayPart(data []byte)

func (*Node) Start

func (node *Node) Start()

Jump to

Keyboard shortcuts

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