Documentation ¶
Index ¶
- Constants
- Variables
- func DumpMetricsEnabled() bool
- func FetchAndSaveMetrics(iteration int) ([][]byte, error)
- func GetNodesCount() (int, error)
- func GetNumShards() (int, error)
- func LogRotateEnabled() bool
- func RotateLogs(verbose bool)
- func Run(cb func() int) int
- func RunOnlyWithLaunchnet(t *testing.T)
- type User
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 ApplicationIncentives [application.GenesisAmountApplicationIncentivesMembers]*User
View Source
var Enterprise [application.GenesisAmountEnterpriseMembers]*User
View Source
var Foundation [application.GenesisAmountFoundationMembers]*User
View Source
var MigrationDaemons [application.GenesisAmountMigrationDaemonMembers]*User
View Source
var NetworkIncentives [application.GenesisAmountNetworkIncentivesMembers]*User
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 ¶
FetchAndSaveMetrics fetches all nodes metric endpoints and saves result to files in logs/metrics/$iteration/<node-addr>.txt files.
func GetNodesCount ¶
func GetNumShards ¶ added in v0.9.20
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 ¶
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
Types ¶
Click to show internal directories.
Click to hide internal directories.