mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-31 00:14:21 +03:00
Prepare v2ray client/server transport
This commit is contained in:
15
adapter/v2ray.go
Normal file
15
adapter/v2ray.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package adapter
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
type V2RayServerTransport interface {
|
||||
Serve(listener net.Listener) error
|
||||
Close() error
|
||||
}
|
||||
|
||||
type V2RayClientTransport interface {
|
||||
DialContext(ctx context.Context) (net.Conn, error)
|
||||
}
|
||||
Reference in New Issue
Block a user