proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWithRetry

func ExecuteWithRetry(client *http.Client, req *http.Request, maxRetries int, logger *slog.Logger) (*http.Response, error)

ExecuteWithRetry executes the request with up to maxRetries retries on network errors or 5xx responses. logger may be nil.

Types

type Handler

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

func NewHandler

func NewHandler(loader *config.Loader, logger *slog.Logger, c *cache.LRU, lm *limiter.Manager, collector *lunerTrace.Collector) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Handler) WithPolicyEngine added in v0.5.0

func (h *Handler) WithPolicyEngine(engine policy.Engine) *Handler

Jump to

Keyboard shortcuts

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