proxy

package
v0.0.0-...-2defda7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReverseProxy

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

ReverseProxy oferece funcionalidade de proxy reverso com circuit breaker

func NewReverseProxy

func NewReverseProxy(cache cache.Cache, logger *zap.Logger) *ReverseProxy

NewReverseProxy cria um novo ReverseProxy

func (*ReverseProxy) ProxyRequest

func (p *ReverseProxy) ProxyRequest(route *model.Route, w http.ResponseWriter, r *http.Request) error

ProxyRequest encaminha uma requisição para o backend

func (*ReverseProxy) SetMetrics

func (p *ReverseProxy) SetMetrics(metrics *metrics.APIMetrics)

SetMetrics configura as métricas para o proxy

Jump to

Keyboard shortcuts

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