conf

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 3 Imported by: 2 modules, 1 package

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

View Source
const (
	// VersionOne is the first protocol version.
	VersionOne = 1

	// CurrentVersion always holds the newest version in production.
	CurrentVersion = 1
)

Variables

View Source
var (
	MainMapName  = "main"
	MainMapScope = hub.ScopePublic
)

Primary Map Configuration.

Functions

func Client

func Client() bool

Client returns whether this is a client.

func EnableClient

func EnableClient(enable bool)

EnableClient enables the client mode.

func EnablePublicHub

func EnablePublicHub(enable bool)

EnablePublicHub enables the public hub mode.

func HubHasIPv4 added in v0.3.1

func HubHasIPv4() bool

HubHasIPv4 returns whether the Hub has IPv4 support.

func HubHasIPv6 added in v0.3.1

func HubHasIPv6() bool

HubHasIPv6 returns whether the Hub has IPv6 support.

func PublicHub

func PublicHub() bool

PublicHub returns whether this is a public Hub.

func SetHubNetworks added in v0.3.1

func SetHubNetworks(v4, v6 bool)

SetHubNetworks sets the available IP networks on the Hub.

Types

This section is empty.

Jump to

Keyboard shortcuts

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