mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 18:43:14 +00:00
16 lines
231 B
Go
16 lines
231 B
Go
|
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)
|
||
|
}
|