- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for DialContext (0.14 sec)
-
cni/pkg/pluginlistener/listener_test.go
var opts []grpc.DialOption opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) { var d net.Dialer return d.DialContext(ctx, "unix", socket) })) conn, err := grpc.Dial(socket, opts...) if err != nil { return nil, err } return conn, nil
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Feb 08 21:58:32 GMT 2024 - 1.4K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient.go
type CNIEventClient struct { client *http.Client url string } func buildClient(address, path string) CNIEventClient { c := &http.Client{ Transport: &http.Transport{ DialContext: func(_ context.Context, _, _ string) (net.Conn, error) { return net.Dial("unix", address) }, }, Timeout: 1000 * time.Millisecond, } eventC := CNIEventClient{ client: c,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 2.4K bytes - Viewed (0) -
common/config/.golangci.yml
- linters: - staticcheck text: 'SA1019: grpc.Dial is deprecated: use NewClient instead' - linters: - staticcheck text: 'SA1019: grpc.DialContext is deprecated: use NewClient instead' # Independently from option `exclude` we use default exclude patterns, # it can be disabled by this option. To list all
Others - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Apr 22 19:22:39 GMT 2024 - 11K bytes - Viewed (0)