Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyWrapper ¶
type ProxyWrapper struct { WgeBPFProxy *WGEBPFProxy // contains filtered or unexported fields }
ProxyWrapper help to keep the remoteConn instance for net.Conn.Close function call
func (*ProxyWrapper) AddTurnConn ¶
func (*ProxyWrapper) CloseConn ¶
func (e *ProxyWrapper) CloseConn() error
CloseConn close the remoteConn and automatically remove the conn instance from the map
func (*ProxyWrapper) EndpointAddr ¶
func (p *ProxyWrapper) EndpointAddr() *net.UDPAddr
func (*ProxyWrapper) Pause ¶
func (p *ProxyWrapper) Pause()
func (*ProxyWrapper) Work ¶
func (p *ProxyWrapper) Work()
type WGEBPFProxy ¶
type WGEBPFProxy struct {
// contains filtered or unexported fields
}
WGEBPFProxy definition for proxy with EBPF support
func NewWGEBPFProxy ¶
func NewWGEBPFProxy(wgPort int) *WGEBPFProxy
NewWGEBPFProxy create new WGEBPFProxy instance
func (*WGEBPFProxy) AddTurnConn ¶
AddTurnConn add new turn connection for the proxy
func (*WGEBPFProxy) Free ¶
func (p *WGEBPFProxy) Free() error
Free resources except the remoteConns will be keep open.
func (*WGEBPFProxy) Listen ¶
func (p *WGEBPFProxy) Listen() error
Listen load ebpf program and listen the proxy
Click to show internal directories.
Click to hide internal directories.