mirror of
https://github.com/go-gost/gost.git
synced 2026-10-09 12:35:45 +00:00
add chain
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package dialer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
// Transporter is responsible for dialing to the proxy server.
|
||||
type Dialer interface {
|
||||
Dial(ctx context.Context, addr string, opts ...DialOption) (net.Conn, error)
|
||||
}
|
||||
|
||||
type Handshaker interface {
|
||||
Handshake(ctx context.Context, conn net.Conn) (net.Conn, error)
|
||||
}
|
||||
|
||||
type Multiplexer interface {
|
||||
IsMultiplex() bool
|
||||
}
|
||||
Reference in New Issue
Block a user