Documentation ¶
Index ¶
- func NewCompositeReporter(first, second reporter.ProxyReporter) reporter.ProxyReporter
- type CompositeReporter
- func (c *CompositeReporter) CaptureBadGateway(req *http.Request)
- func (c *CompositeReporter) CaptureBadRequest(req *http.Request)
- func (c *CompositeReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)
- func (c *CompositeReporter) CaptureRoutingResponse(b *route.Endpoint, res *http.Response, t time.Time, d time.Duration)
- type MetricsReporter
- func (m *MetricsReporter) CaptureBadGateway(req *http.Request)
- func (m *MetricsReporter) CaptureBadRequest(req *http.Request)
- func (c *MetricsReporter) CaptureLookupTime(t time.Duration)
- func (c *MetricsReporter) CaptureRegistryMessage(msg reporter.ComponentTagged)
- func (c *MetricsReporter) CaptureRouteStats(totalRoutes int, msSinceLastUpdate uint64)
- func (m *MetricsReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)
- func (m *MetricsReporter) CaptureRoutingResponse(b *route.Endpoint, res *http.Response, t time.Time, d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompositeReporter ¶
func NewCompositeReporter(first, second reporter.ProxyReporter) reporter.ProxyReporter
Types ¶
type CompositeReporter ¶
type CompositeReporter struct {
// contains filtered or unexported fields
}
func (*CompositeReporter) CaptureBadGateway ¶
func (c *CompositeReporter) CaptureBadGateway(req *http.Request)
func (*CompositeReporter) CaptureBadRequest ¶
func (c *CompositeReporter) CaptureBadRequest(req *http.Request)
func (*CompositeReporter) CaptureRoutingRequest ¶
func (c *CompositeReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)
type MetricsReporter ¶
type MetricsReporter struct { }
func NewMetricsReporter ¶
func NewMetricsReporter() *MetricsReporter
func (*MetricsReporter) CaptureBadGateway ¶
func (m *MetricsReporter) CaptureBadGateway(req *http.Request)
func (*MetricsReporter) CaptureBadRequest ¶
func (m *MetricsReporter) CaptureBadRequest(req *http.Request)
func (*MetricsReporter) CaptureLookupTime ¶
func (c *MetricsReporter) CaptureLookupTime(t time.Duration)
func (*MetricsReporter) CaptureRegistryMessage ¶
func (c *MetricsReporter) CaptureRegistryMessage(msg reporter.ComponentTagged)
func (*MetricsReporter) CaptureRouteStats ¶
func (c *MetricsReporter) CaptureRouteStats(totalRoutes int, msSinceLastUpdate uint64)
func (*MetricsReporter) CaptureRoutingRequest ¶
func (m *MetricsReporter) CaptureRoutingRequest(b *route.Endpoint, req *http.Request)
Click to show internal directories.
Click to hide internal directories.