Documentation ¶
Index ¶
- func HandleTcpWorkConnection(localInfo *config.LocalSvrConf, proxyPlugin plugin.Plugin, ...)
- type BaseProxy
- type BaseVisitor
- type Control
- type GeneralResponse
- type HttpProxy
- type HttpsProxy
- type Proxy
- type ReloadResp
- type Service
- type StcpProxy
- type StcpVisitor
- type TcpProxy
- type UdpProxy
- type Visitor
- type XtcpProxy
- type XtcpVisitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleTcpWorkConnection ¶
func HandleTcpWorkConnection(localInfo *config.LocalSvrConf, proxyPlugin plugin.Plugin, baseInfo *config.BaseProxyConf, workConn frpNet.Conn, encKey []byte)
Common handler for tcp work connections.
Types ¶
type BaseVisitor ¶ added in v0.14.0
type Control ¶
func NewControl ¶
func (*Control) NewWorkConn ¶
func (ctl *Control) NewWorkConn()
func (*Control) Run ¶
1. login 2. start reader() writer() manager() 3. connection closed 4. In reader(): close closedCh and exit, controler() get it 5. In controler(): close readCh and sendCh, manager() and writer() will exit 6. In controler(): ini readCh, sendCh, closedCh 7. In controler(): start new reader(), writer(), manager() controler() will keep running
type GeneralResponse ¶ added in v0.13.0
type HttpProxy ¶
type HttpProxy struct { BaseProxy // contains filtered or unexported fields }
HTTP
func (*HttpProxy) InWorkConn ¶
type HttpsProxy ¶
type HttpsProxy struct { BaseProxy // contains filtered or unexported fields }
HTTPS
func (*HttpsProxy) Close ¶
func (pxy *HttpsProxy) Close()
func (*HttpsProxy) InWorkConn ¶
func (pxy *HttpsProxy) InWorkConn(conn frpNet.Conn)
func (*HttpsProxy) Run ¶
func (pxy *HttpsProxy) Run() (err error)
type Proxy ¶
type Proxy interface { Run() error // InWorkConn accept work connections registered to server. InWorkConn(conn frpNet.Conn) Close() log.Logger }
Proxy defines how to deal with work connections for different proxy type.
type StcpProxy ¶ added in v0.13.0
type StcpProxy struct { BaseProxy // contains filtered or unexported fields }
STCP
func (*StcpProxy) InWorkConn ¶ added in v0.13.0
type StcpVisitor ¶ added in v0.14.0
type StcpVisitor struct { BaseVisitor // contains filtered or unexported fields }
func (*StcpVisitor) Close ¶ added in v0.14.0
func (sv *StcpVisitor) Close()
func (*StcpVisitor) Run ¶ added in v0.14.0
func (sv *StcpVisitor) Run() (err error)
type TcpProxy ¶
type TcpProxy struct { BaseProxy // contains filtered or unexported fields }
TCP
func (*TcpProxy) InWorkConn ¶
type UdpProxy ¶
type UdpProxy struct { BaseProxy // contains filtered or unexported fields }
UDP
func (*UdpProxy) InWorkConn ¶
type Visitor ¶ added in v0.14.0
Visitor is used for forward traffics from local port tot remote service.
type XtcpProxy ¶ added in v0.14.0
type XtcpProxy struct { BaseProxy // contains filtered or unexported fields }
XTCP
func (*XtcpProxy) InWorkConn ¶ added in v0.14.0
type XtcpVisitor ¶ added in v0.14.0
type XtcpVisitor struct { BaseVisitor // contains filtered or unexported fields }
func (*XtcpVisitor) Close ¶ added in v0.14.0
func (sv *XtcpVisitor) Close()
func (*XtcpVisitor) Run ¶ added in v0.14.0
func (sv *XtcpVisitor) Run() (err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.