Prepare v2ray client/server transport

This commit is contained in:
世界
2022-08-22 18:53:47 +08:00
parent 6253e2e24c
commit 082872b2f3
27 changed files with 1490 additions and 74 deletions

15
adapter/v2ray.go Normal file
View 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)
}