Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶ added in v0.6.7
type Metrics struct { RequestsInFlight *prometheus.GaugeVec RequestsTotal *prometheus.CounterVec RequestLatency *prometheus.HistogramVec RequestSize *prometheus.HistogramVec ResponseSize *prometheus.HistogramVec }
func NewMetrics ¶ added in v0.6.7
func (*Metrics) Handler ¶ added in v0.6.7
func (m *Metrics) Handler(endpoint string) gin.HandlerFunc
func (*Metrics) Register ¶ added in v0.6.7
func (m *Metrics) Register(registry *prometheus.Registry)
type ReverseProxy ¶
type ReverseProxy struct {
// contains filtered or unexported fields
}
func NewReverseProxy ¶
func NewReverseProxy(conf config.ListenerConfig, logger log.Logger) *ReverseProxy
func (*ReverseProxy) ServeHTTP ¶
func (p *ReverseProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.