pages

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPERATION_START   = "op_start"
	OPERATION_STOP    = "op_stop"
	OPERATION_RESTART = "op_restart"
)

Variables

View Source
var (
	TLS_CERT_FILE string
	TLS_KEY_FILE  string
)
View Source
var PublicLocalForward engin.Forward

Functions

func DomainCheck

func DomainCheck(address string) bool

func DomainInit

func DomainInit()

func DomainTableGet

func DomainTableGet(ctx *context.Context) table.Table

func EnginAuth

func EnginAuth(tag string, auth int) error

func EnginFini

func EnginFini()

func EnginInit

func EnginInit()

func EnginStart

func EnginStart(tag string) error

func EnginStop

func EnginStop(tag string) error

func GetDashBoard

func GetDashBoard(ctx *context.Context) (types.Panel, error)

func ProxyTableGet

func ProxyTableGet(ctx *context.Context) table.Table

func RemoteTableGet

func RemoteTableGet(ctx *context.Context) table.Table

func TLSCertSet

func TLSCertSet(cert, key string)

func UserTableGet

func UserTableGet(ctx *context.Context) table.Table

Types

type DomainCtrl

type DomainCtrl struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type MultiProxyCtrl

type MultiProxyCtrl struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type ProxyEngin

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

func NewProxyEngin

func NewProxyEngin(proxy *models.Proxy, remote *models.Remote) (*ProxyEngin, error)

func (*ProxyEngin) AuthSwitch

func (p *ProxyEngin) AuthSwitch(auth int)

func (*ProxyEngin) DomainForwardFunc

func (p *ProxyEngin) DomainForwardFunc(address string, r *http.Request) engin.Forward

func (*ProxyEngin) LocalForwardFunc

func (p *ProxyEngin) LocalForwardFunc(address string, r *http.Request) engin.Forward

func (*ProxyEngin) ProxyForwardFunc

func (p *ProxyEngin) ProxyForwardFunc(address string, r *http.Request) engin.Forward

func (*ProxyEngin) Stop

func (p *ProxyEngin) Stop()

Jump to

Keyboard shortcuts

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