launchnet

package
v0.9.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 20 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 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(dirPattern string, verbose bool)

RotateLogs rotates launchnet logs.

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