tunnel

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: 19 Imported by: 0

Documentation

Index

Constants

View Source
const RetryConnectTime = 3

Variables

This section is empty.

Functions

func InfoFromHostAndRelay

func InfoFromHostAndRelay(host host.Host, relay *peer.AddrInfo) *peer.AddrInfo

func Register

func Register(c *config.TunnelAgentConfig, ifm *informers.Manager, mode TunnelMode) error

Register register tunnelagent to beehive modules

Types

type TunnelAgent

type TunnelAgent struct {
	Config   *config.TunnelAgentConfig
	Host     host.Host
	ProxySvc *proxy.ProxyService
	Mode     TunnelMode
}

TunnelAgent is used for solving cross subset communication

var Agent *TunnelAgent

func (*TunnelAgent) Enable

func (t *TunnelAgent) Enable() bool

Enable indicates whether enable this module

func (*TunnelAgent) Group

func (t *TunnelAgent) Group() string

Group of tunnelagent

func (*TunnelAgent) Name

func (t *TunnelAgent) Name() string

Name of tunnelagent

func (*TunnelAgent) Run

func (t *TunnelAgent) Run()

func (*TunnelAgent) Start

func (t *TunnelAgent) Start()

Start tunnelserver

type TunnelMode

type TunnelMode string
const (
	ClientMode       TunnelMode = "ClientOnly"
	ServerClientMode TunnelMode = "ServerAndClient"
	UnknownMode      TunnelMode = "Unknown"
)

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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