initial commit
This commit is contained in:
11
client/connector/connector.go
Normal file
11
client/connector/connector.go
Normal file
@ -0,0 +1,11 @@
|
||||
package connector
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net"
|
||||
)
|
||||
|
||||
// Connector is responsible for connecting to the destination address.
|
||||
type Connector interface {
|
||||
Connect(ctx context.Context, conn net.Conn, network, address string) (net.Conn, error)
|
||||
}
|
Reference in New Issue
Block a user