Documentation ¶
Index ¶
- func NewTcpConn(ctx context.Context, metadata *C.Metadata, rule constants.IpRule, ...) (net.Conn, error)
- func NewUdpConn(ctx context.Context, metadata *C.Metadata, rule constants.IpRule, ...) (net.PacketConn, error)
- func UpdateProxy(proxy C.Proxy)
- type TcpConnContext
- type UdpConn
- type UdpConnContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTcpConn ¶
func NewUdpConn ¶
func UpdateProxy ¶
Types ¶
type TcpConnContext ¶
type TcpConnContext struct { Wg *sync.WaitGroup Rule constants.IpRule Ctx context.Context // contains filtered or unexported fields }
func NewTcpConnContext ¶
func (*TcpConnContext) Conn ¶
func (t *TcpConnContext) Conn() net.Conn
func (*TcpConnContext) ID ¶
func (t *TcpConnContext) ID() uuid.UUID
func (*TcpConnContext) Metadata ¶
func (t *TcpConnContext) Metadata() *constant.Metadata
type UdpConnContext ¶
type UdpConnContext struct { Wg *sync.WaitGroup Rule constants.IpRule Ctx context.Context ProxyAddr string // contains filtered or unexported fields }
func NewUdpConnContext ¶
func (*UdpConnContext) Conn ¶
func (u *UdpConnContext) Conn() UdpConn
func (*UdpConnContext) ID ¶
func (u *UdpConnContext) ID() uuid.UUID
func (*UdpConnContext) Metadata ¶
func (u *UdpConnContext) Metadata() *constant.Metadata
Click to show internal directories.
Click to hide internal directories.