launchnet

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0, Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const AdminPort = "19002"
View Source
const HOST = "http://localhost:"
View Source
const HostDebug = "http://localhost:8001"
View Source
const PublicPort = "19102"
View Source
const TestAdminRPCUrl = "/admin-api/rpc"

Variables

View Source
var AdminHostPort = HOST + AdminPort
View Source
var TestRPCUrl = HOST + AdminPort + TestAdminRPCUrl
View Source
var TestRPCUrlPublic = HOST + PublicPort + "/api/rpc"

Functions

func DumpMetricsEnabled

func DumpMetricsEnabled() bool

LogRotateEnabled checks is log rotation enabled by environment variable.

func FetchAndSaveMetrics

func FetchAndSaveMetrics(iteration int) ([][]byte, error)

FetchAndSaveMetrics fetches all nodes metric endpoints and saves result to files in logs/metrics/$iteration/<node-addr>.txt files.

func GetNodesCount

func GetNodesCount() (int, error)

func GetNumShards added in v0.9.20

func GetNumShards() (int, error)

func LogRotateEnabled

func LogRotateEnabled() bool

LogRotateEnabled checks is log rotation enabled by environment variable.

func RotateLogs

func RotateLogs(verbose bool)

RotateLogs rotates launchnet logs, verbose flag enables printing what happens.

func Run

func Run(cb func() int) int

Method starts launchnet before execution of callback function (cb) and stops launchnet after. Returns exit code as a result from calling callback function.

func RunOnlyWithLaunchnet added in v0.9.20

func RunOnlyWithLaunchnet(t *testing.T)

Types

type User

type User struct {
	Ref              string
	PrivKey          string
	PubKey           string
	MigrationAddress string
}
var FeeMember User
var MigrationAdmin User
var Root User

Jump to

Keyboard shortcuts

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