proxy

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport added in v0.11.0

func NewTransport(cfg Config) http.RoundTripper

Types

type Config

type Config struct {
	Timeout   time.Duration `conf:"default:10s" yaml:"timeout"`
	KeepAlive time.Duration `conf:"default:180s" yaml:"keep_alive"`
	Host      string        `conf:"default:http://localhost:8081" yaml:"host"`
	Tracing   TracingConfig `yaml:"tracing"`
}

type TracingConfig added in v0.11.0

type TracingConfig struct {
	RedactedHeaders []string `yaml:"redacted_headers"`
}

Jump to

Keyboard shortcuts

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