environment

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 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

	// SupernodeDownloadPort is the port that supernode will listen.
	SupernodeDownloadPort = 8009

	// DragonflySupernodeBinary is the default binary path.
	DragonflySupernodeBinary = "/usr/local/bin/supernode"

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

	// TLSConfig is the default TLS config.
	TLSConfig = client.TLSConfig{}

	// GateWay is the default gateway for test.
	GateWay = "192.168.1.1"

	// Subnet is the default subnet for test.
	Subnet = "192.168.1.0/24"
)

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