dialer

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dialer ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialUnix

func DialUnix() func(context.Context, string) (net.Conn, error)

DialUnix is used as a parameter for 'grpc.WithContextDialer' to bypass the default dialer of gRPC to ensure that proxy vars are not used.

func DynamicProxyDialer added in v1.9.5

func DynamicProxyDialer(ctx context.Context, addr string) (net.Conn, error)

DynamicProxyDialer is a fork of grpc standard dialer which supports dynamic resolving of proxy settings on each request (vs. caching it once per process).

DynamicProxyDialer assumes that the address is using 'tcp' network.

func NetDialerWithTCPKeepalive added in v1.9.5

func NetDialerWithTCPKeepalive() *net.Dialer

NetDialerWithTCPKeepalive returns a net.Dialer that enables TCP keepalives on the underlying connection with OS default values for keepalive parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL