proxy

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 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 `yaml:"timeout"`
	KeepAlive time.Duration `yaml:"keep_alive"`
	Host      string        `yaml:"host"`
	Tracing   TracingConfig `yaml:"tracing"`
}

func DefaultConfig added in v0.17.0

func DefaultConfig() Config

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