mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-12 23:36:43 -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
|
|
}
|