privtangle

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

privtangle is a cluster of HORNET nodes started for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaucetInfoResponse

type FaucetInfoResponse struct {
	Balance uint64 `json:"balance"`
}

type LogFunc

type LogFunc func(format string, args ...interface{})

type PrivTangle

type PrivTangle struct {
	CooKeyPair1   *cryptolib.KeyPair
	CooKeyPair2   *cryptolib.KeyPair
	FaucetKeyPair *cryptolib.KeyPair
	SnapshotInit  string
	ConfigFile    string
	BaseDir       string
	BasePort      int
	NodeCount     int
	NodeKeyPairs  []*cryptolib.KeyPair
	NodeCommands  []*exec.Cmd
	// contains filtered or unexported fields
}

func Start

func Start(ctx context.Context, baseDir string, basePort, nodeCount int, logfunc LogFunc) *PrivTangle

func (*PrivTangle) L1Config

func (pt *PrivTangle) L1Config(i ...int) l1connection.Config

func (*PrivTangle) NodeMultiAddr

func (pt *PrivTangle) NodeMultiAddr(i int) string

func (*PrivTangle) NodeMultiAddrsWoIndex

func (pt *PrivTangle) NodeMultiAddrsWoIndex(x int) []string

func (*PrivTangle) NodePortCoordinator

func (pt *PrivTangle) NodePortCoordinator(i int) int

func (*PrivTangle) NodePortDashboard

func (pt *PrivTangle) NodePortDashboard(i int) int

func (*PrivTangle) NodePortFaucet

func (pt *PrivTangle) NodePortFaucet(i int) int

func (*PrivTangle) NodePortINX

func (pt *PrivTangle) NodePortINX(i int) int

func (*PrivTangle) NodePortIndexer

func (pt *PrivTangle) NodePortIndexer(i int) int

func (*PrivTangle) NodePortPeering

func (pt *PrivTangle) NodePortPeering(i int) int

func (*PrivTangle) NodePortProfiling

func (pt *PrivTangle) NodePortProfiling(i int) int

func (*PrivTangle) NodePortPrometheus

func (pt *PrivTangle) NodePortPrometheus(i int) int

func (*PrivTangle) NodePortRestAPI

func (pt *PrivTangle) NodePortRestAPI(i int) int

func (*PrivTangle) StartServers added in v1.0.3

func (pt *PrivTangle) StartServers(deleteExisting bool)

func (*PrivTangle) Stop

func (pt *PrivTangle) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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