Documentation ¶
Index ¶
- func GetIsProxyAddr(addr string) bool
- func GetProxyAddr() string
- 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 UpdateMatcher(c Matcher)
- func UpdateProxy(remoteProxy C.Proxy)
- type Matcher
- type ProxyAddr
- type ProxyAddrType
- type TcpConnContext
- type UdpConn
- type UdpConnContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIsProxyAddr ¶
func GetProxyAddr ¶
func GetProxyAddr() string
func NewTcpConn ¶
func NewUdpConn ¶
func UpdateMatcher ¶
func UpdateMatcher(c Matcher)
func UpdateProxy ¶
Types ¶
type Matcher ¶
func GetMatcher ¶
func GetMatcher() Matcher
type ProxyAddr ¶
type ProxyAddr struct {
// contains filtered or unexported fields
}
func (ProxyAddr) Type ¶
func (p ProxyAddr) Type() ProxyAddrType
type ProxyAddrType ¶
type ProxyAddrType int
type TcpConnContext ¶
type TcpConnContext struct {
// contains filtered or unexported fields
}
func NewTcpConnContext ¶
func (*TcpConnContext) Conn ¶
func (t *TcpConnContext) Conn() net.Conn
func (*TcpConnContext) Ctx ¶
func (t *TcpConnContext) Ctx() context.Context
func (*TcpConnContext) ID ¶
func (t *TcpConnContext) ID() uuid.UUID
func (*TcpConnContext) Metadata ¶
func (t *TcpConnContext) Metadata() *constant.Metadata
func (*TcpConnContext) Rule ¶
func (t *TcpConnContext) Rule() constants.IpRule
func (*TcpConnContext) Wg ¶
func (t *TcpConnContext) Wg() *sync.WaitGroup
type UdpConnContext ¶
type UdpConnContext struct {
// contains filtered or unexported fields
}
func NewUdpConnContext ¶
func (*UdpConnContext) Conn ¶
func (u *UdpConnContext) Conn() UdpConn
func (*UdpConnContext) Ctx ¶
func (u *UdpConnContext) Ctx() context.Context
func (*UdpConnContext) ID ¶
func (u *UdpConnContext) ID() uuid.UUID
func (*UdpConnContext) Metadata ¶
func (u *UdpConnContext) Metadata() *constant.Metadata
func (*UdpConnContext) Rule ¶
func (u *UdpConnContext) Rule() constants.IpRule
func (*UdpConnContext) Wg ¶
func (u *UdpConnContext) Wg() *sync.WaitGroup
Click to show internal directories.
Click to hide internal directories.