Prepare v2ray client/server transport

This commit is contained in:
世界 committed 2022-08-22 18:57:05 +08:00
1 parent 6253e2e24c
commit 082872b2f3
27 files changed
+1490 -74

No files matched your search

+15
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)
}