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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user