proxy

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy(cfg Config, blockFieldSuggestions *block_field_suggestions.BlockFieldSuggestionsHandler, obfuscateUpstreamErrors *obfuscate_upstream_errors.ObfuscateUpstreamErrors, logGraphqlErrors bool, log *slog.Logger) (*httputil.ReverseProxy, error)

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