ldntlm

package
v4.0.0-...-2a44fb3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Overview

Package ldntlm allows you to configure the SDK to connect to LaunchDarkly through a proxy server that uses NTLM authentication. The standard Go HTTP client proxy mechanism does not support this. The implementation uses this package: github.com/launchdarkly/go-ntlm-proxy-auth

Usage:

clientFactory, err := ldntlm.NewNTLMProxyHTTPClientFactory("http://my-proxy.com", "username",
    "password", "domain")
if err != nil {
    // there's some configuration problem such as an invalid proxy URL
}
config := ld.DefaultConfig
config.HTTPClientFactory = clientFactory
client, err := ld.MakeCustomClient("sdk-key", config, 5*time.Second)

You can also specify TLS configuration options from the ldhttp package:

clientFactory, err := ldntlm.NewNTLMProxyHTTPClientFactory("http://my-proxy.com", "username",
    "password", "domain", ldhttp.CACertFileOption("extra-ca-cert.pem"))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNTLMProxyHTTPClientFactory

func NewNTLMProxyHTTPClientFactory(proxyURL, username, password, domain string,
	options ...ldhttp.TransportOption) (ld.HTTPClientFactory, error)

NewNTLMProxyHTTPClientFactory returns a factory function for creating an HTTP client that will connect through an NTLM-authenticated proxy server. This function should be placed in the HTTPClientFactory property of your Config object when you create the LaunchDarkly SDK client. If you are connecting to the proxy securely and need to specify any custom TLS options, these can be specified using the TransportOption values defined in the ldhttp package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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