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