Documentation ¶
Index ¶
- func GetProxy(rule constants.RuleType) (C.Proxy, error)
- func NewTcpConn(ctx context.Context, metadata *C.Metadata, rule constants.RuleType, ...) (net.Conn, error)
- func NewUdpConn(ctx context.Context, metadata *C.Metadata, rule constants.RuleType, ...) (net.PacketConn, error)
- func RejectQuicMather(metadata *C.Metadata, prevRule constants.RuleType) (constants.RuleType, error)
- func UpdateConnMatcher(matchers []Matcher)
- func UpdateProxy(remoteProxy C.Proxy)
- type Matcher
- type TcpConnContext
- type UdpConn
- type UdpConnContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTcpConn ¶
func NewUdpConn ¶
func RejectQuicMather ¶ added in v0.13.0
func UpdateConnMatcher ¶ added in v0.13.0
func UpdateConnMatcher(matchers []Matcher)
func UpdateProxy ¶
Types ¶
type Matcher ¶
func GetConnMatcher ¶ added in v0.13.0
func GetConnMatcher() []Matcher
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) Metadata ¶
func (t *TcpConnContext) Metadata() *C.Metadata
func (*TcpConnContext) Rule ¶
func (t *TcpConnContext) Rule() constants.RuleType
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) Metadata ¶
func (u *UdpConnContext) Metadata() *C.Metadata
func (*UdpConnContext) Rule ¶
func (u *UdpConnContext) Rule() constants.RuleType
func (*UdpConnContext) Wg ¶
func (u *UdpConnContext) Wg() *sync.WaitGroup
Click to show internal directories.
Click to hide internal directories.