Files
kubevpn/pkg/core/client.go
2022-08-05 15:23:34 +08:00

20 lines
260 B
Go

package core
import (
"context"
"net"
)
type Client struct {
Connector
Transporter
}
type Connector interface {
ConnectContext(ctx context.Context, conn net.Conn) (net.Conn, error)
}
type Transporter interface {
Dial(addr string) (net.Conn, error)
}