launchnet

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 21 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"
View Source
const TestRPCUrl = HOST + AdminPort + TestAdminRPCUrl
View Source
const TestRPCUrlPublic = HOST + PublicPort + "/api/rpc"

Variables

Functions

func DumpMetricsEnabled added in v0.9.3

func DumpMetricsEnabled() bool

LogRotateEnabled checks is log rotation enabled by environment variable.

func FetchAndSaveMetrics added in v0.9.3

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 LogRotateEnabled added in v0.9.1

func LogRotateEnabled() bool

LogRotateEnabled checks is log rotation enabled by environment variable.

func RotateLogs added in v0.9.1

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.

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