mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
15 lines
344 B
Go
15 lines
344 B
Go
|
|
package proxy
|
||
|
|
|
||
|
|
import (
|
||
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
||
|
|
"github.com/v2ray/v2ray-core/transport/ray"
|
||
|
|
)
|
||
|
|
|
||
|
|
type OutboundConnectionHandlerFactory interface {
|
||
|
|
Create(config interface{}) (OutboundConnectionHandler, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
type OutboundConnectionHandler interface {
|
||
|
|
Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
|
||
|
|
}
|