transport

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) (http.RoundTripper, error)

New creates a http.RoundTripper configured with the Transport configuration settings.

Types

type Config

type Config struct {
	Dialer                *dialer.Config `json:"dialer,omitempty"`
	IdleConnTimeout       *json.Duration `` /* 154-byte string literal not displayed */
	ResponseHeaderTimeout *json.Duration `` /* 153-byte string literal not displayed */
	ExpectContinueTimeout *json.Duration `` /* 219-byte string literal not displayed */
	MaxIdleConnsPerHost   int            `` /* 131-byte string literal not displayed */
	MaxConnsPerHost       int            `` /* 181-byte string literal not displayed */
	DisableKeepAlives     bool           `` /* 147-byte string literal not displayed */
	DisableCompression    bool           `` /* 193-byte string literal not displayed */
	EnableHTTP2           bool           `json:"enableHTTP2,omitempty" description:"Enables HTTP2 connection"`
	EnableH2C             bool           `json:"enableH2C,omitempty" description:"Enables H2C connection"`
}

Config options to configure communication between Traefik and the servers

func (*Config) SetDefault

func (cfg *Config) SetDefault() *Config

Jump to

Keyboard shortcuts

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