Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DialContext ¶
DialContext is the DialContext function that should be wrapped with a NTLM Authentication.
Example for DialContext:
dialContext := (&net.Dialer{KeepAlive: 30*time.Second, Timeout: 30*time.Second}).DialContext
func NewNTLMProxyDialContext ¶
func NewNTLMProxyDialContext(dialer *net.Dialer, proxyURL url.URL, proxyUsername, proxyPassword, proxyDomain string, tlsConfig *tls.Config) DialContext
NewNTLMProxyDialContext provides a DialContext function that includes transparent NTLM proxy authentication. Unlike WrapDialContext, it describes the proxy location with a full URL, whose scheme can be HTTP or HTTPS.
func WrapDialContext ¶
func WrapDialContext(dialContext DialContext, proxyAddress, proxyUsername, proxyPassword, proxyDomain string) DialContext
WrapDialContext wraps a DialContext with an NTLM Authentication to a proxy. Note that this does not support using HTTPS to connect to the proxy; use NewNTLMProxyDialContext if that is required.
Click to show internal directories.
Click to hide internal directories.