Documentation ¶
Index ¶
- Constants
- Variables
- func DomainCheck(address string) bool
- func DomainInit()
- func DomainTableGet(ctx *context.Context) table.Table
- func EnginAuth(tag string, auth int) error
- func EnginFini()
- func EnginInit()
- func EnginStart(tag string) error
- func EnginStop(tag string) error
- func GetDashBoard(ctx *context.Context) (types.Panel, error)
- func ProxyTableGet(ctx *context.Context) table.Table
- func RemoteTableGet(ctx *context.Context) table.Table
- func TLSCertSet(cert, key string)
- func UserTableGet(ctx *context.Context) table.Table
- type DomainCtrl
- type MultiProxyCtrl
- type ProxyEngin
- func (p *ProxyEngin) AuthSwitch(auth int)
- func (p *ProxyEngin) DomainForwardFunc(address string, r *http.Request) engin.Forward
- func (p *ProxyEngin) LocalForwardFunc(address string, r *http.Request) engin.Forward
- func (p *ProxyEngin) ProxyForwardFunc(address string, r *http.Request) engin.Forward
- func (p *ProxyEngin) Stop()
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 DomainInit ¶
func DomainInit()
func EnginStart ¶
func TLSCertSet ¶
func TLSCertSet(cert, key string)
Types ¶
type DomainCtrl ¶
type MultiProxyCtrl ¶
type ProxyEngin ¶
type ProxyEngin struct {
// contains filtered or unexported fields
}
func NewProxyEngin ¶
func (*ProxyEngin) AuthSwitch ¶
func (p *ProxyEngin) AuthSwitch(auth int)
func (*ProxyEngin) DomainForwardFunc ¶
func (*ProxyEngin) LocalForwardFunc ¶
func (*ProxyEngin) ProxyForwardFunc ¶
func (*ProxyEngin) Stop ¶
func (p *ProxyEngin) Stop()
Click to show internal directories.
Click to hide internal directories.