environment

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SupernodeListenPort is the port that supernode will listen.
	SupernodeListenPort = 8008

	// DragonflySupernodeBinary is default binary
	DragonflySupernodeBinary = "/usr/local/bin/supernode"

	// DragonflyAddress is default address dragonfly supernode listens on.
	DragonflyAddress = fmt.Sprintf("tcp://127.0.0.1:%d", SupernodeListenPort)

	// TLSConfig is default tls config
	TLSConfig = client.TLSConfig{}

	// GateWay default gateway for test
	GateWay = "192.168.1.1"

	// Subnet default subnet for test
	Subnet = "192.168.1.0/24"
)
View Source
var UseJavaVersion bool

UseJavaVersion whether to run integration test with java version supernode

Functions

func IsHubConnected

func IsHubConnected() bool

IsHubConnected checks if hub address can be connected.

func IsLinux

func IsLinux() bool

IsLinux checks if the OS of test environment is Linux.

Types

This section is empty.

Jump to

Keyboard shortcuts

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