controller

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceController

type ResourceController struct {
	// Manage all visitor listeners
	VisitorManager *VisitorManager

	// Tcp Group Controller
	TcpGroupCtl *group.TcpGroupCtl

	// HTTP Group Controller
	HTTPGroupCtl *group.HTTPGroupController

	// Manage all tcp ports
	TcpPortManager *ports.PortManager

	// Manage all udp ports
	UdpPortManager *ports.PortManager

	// For http proxies, forwarding http requests
	HttpReverseProxy *vhost.HttpReverseProxy

	// For https proxies, route requests to different clients by hostname and other information
	VhostHttpsMuxer *vhost.HttpsMuxer

	// Controller for nat hole connections
	NatHoleController *nathole.NatHoleController

	// TcpMux HTTP CONNECT multiplexer
	TcpMuxHttpConnectMuxer *tcpmux.HttpConnectTcpMuxer
}

All resource managers and controllers

type VisitorManager

type VisitorManager struct {
	// contains filtered or unexported fields
}

Manager for visitor listeners.

func NewVisitorManager

func NewVisitorManager() *VisitorManager

func (*VisitorManager) CloseListener

func (vm *VisitorManager) CloseListener(name string)

func (*VisitorManager) Listen

func (vm *VisitorManager) Listen(name string, sk string) (l *frpNet.CustomListener, err error)

func (*VisitorManager) NewConn

func (vm *VisitorManager) NewConn(name string, conn net.Conn, timestamp int64, signKey string,
	useEncryption bool, useCompression bool) (err error)

Jump to

Keyboard shortcuts

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