environment

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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