mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-21 08:33:49 +00:00
14 lines
319 B
Go
14 lines
319 B
Go
package network
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
type DialContext func(ctx context.Context, network, address string) (net.Conn, error)
|
|
|
|
// DefaultDialContext returns a DialContext function from a network dialer with default options sets.
|
|
func DefaultClientDialContext() DialContext {
|
|
return dialerWithDefaultOptions()
|
|
}
|