proxy

package
v0.0.0-...-7aa52fb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Addr             string
	Mode             string
	UpstreamProxy    string
	PassthroughHosts []string
	CACert           tls.Certificate
	Engine           *rules.Engine
	Sanitizer        *sanitize.Sanitizer
	Guard            *response.Guard
	Budget           *budget.Controller
	UI               *ui.Inline
	Log              *auditlog.Writer
	Recorder         *replay.Recorder
	Replayer         *replay.Player
	Explainer        *ui.Explainer
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(opts Options) (*Server, error)

func (*Server) Duration

func (s *Server) Duration() time.Duration

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stats

func (s *Server) Stats() Stats

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

type Stats

type Stats struct {
	Requests        int
	Allowed         int
	Blocked         int
	Sanitized       int
	Errors          int
	SecretsRedacted int
	HostCounts      map[string]int
	BlockedHosts    map[string]int
}

Jump to

Keyboard shortcuts

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