mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 20:15:46 +00:00
add tls and ws listener
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package dialer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
// Dialer dials to target server.
|
||||
type Dialer interface {
|
||||
Init(md Metadata) error
|
||||
Dial(ctx context.Context, addr string) (net.Conn, error)
|
||||
}
|
||||
|
||||
type Handshaker interface {
|
||||
Handshake(ctx context.Context, conn net.Conn) (net.Conn, error)
|
||||
}
|
||||
|
||||
type Multiplexer interface {
|
||||
Multiplexed() bool
|
||||
}
|
||||
Reference in New Issue
Block a user