1
0
mirror of https://github.com/rancher/types.git synced 2025-09-19 00:46:53 +00:00

Merge pull request #1132 from ibuildthecloud/master

Move dialer interface to DialContext
This commit is contained in:
Darren Shepherd
2020-04-03 10:56:48 -07:00
committed by GitHub

View File

@@ -1,8 +1,11 @@
package dialer
import "net"
import (
"context"
"net"
)
type Dialer func(network, address string) (net.Conn, error)
type Dialer func(ctx context.Context, network, address string) (net.Conn, error)
type Factory interface {
ClusterDialer(clusterName string) (Dialer, error)