config

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunnelAgentConfig

type TunnelAgentConfig struct {
	// Enable indicates whether TunnelAgent is enabled,
	// if set to false (for debugging etc.), skip checking other TunnelAgent configs.
	// default false
	Enable bool `json:"enable,omitempty"`
	// Security indicates the set of tunnel agent config about security
	Security *security.Security `json:"security,omitempty"`
	// NodeName indicates the node name of tunnel agent
	NodeName string `json:"nodeName,omitempty"`
	// ListenPort indicates the listen port of tunnel agent
	// default 20006
	ListenPort int `json:"listenPort,omitempty"`
	// EnableHolePunch indicates whether p2p hole punching feature is enabled,
	// default true
	EnableHolePunch bool `json:"enableHolePunch,omitempty"`
	// Transport indicates the transport protocol used by the p2p tunnel
	Transport string `json:"transport,omitempty"`
}

func NewTunnelAgentConfig

func NewTunnelAgentConfig() *TunnelAgentConfig

Jump to

Keyboard shortcuts

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