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"`
}
Click to show internal directories.
Click to hide internal directories.