Documentation ¶
Index ¶
- Constants
- Variables
- func BindAddrIsSet() bool
- func Client() bool
- func EnableClient(enable bool)
- func EnablePublicHub(enable bool)
- func GetBindAddr(dialNetwork string) net.Addr
- func GetBindIPs() []net.IP
- func HubHasIPv4() bool
- func HubHasIPv6() bool
- func PublicHub() bool
- func SetBindAddr(ip4, ip6 net.IP)
- func SetHubNetworks(v4, v6 bool)
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 BindAddrIsSet ¶ added in v0.7.3
func BindAddrIsSet() bool
BindAddrIsSet returns whether any bind address is set.
func EnablePublicHub ¶
func EnablePublicHub(enable bool)
EnablePublicHub enables the public hub mode.
func GetBindAddr ¶ added in v0.7.3
GetBindAddr returns an address with the preferred binding address for the given dial network. The dial network must have a suffix specifying the IP version.
func GetBindIPs ¶ added in v0.7.3
GetBindIPs returns the preferred binding IPs. Returns a slice with a single nil IP if no preferred binding IPs are set.
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 SetBindAddr ¶ added in v0.7.3
SetBindAddr sets the preferred connect (bind) addresses.
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.
Click to show internal directories.
Click to hide internal directories.