Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircuitBreaker ¶
type CircuitBreaker struct { CircuitBreaker *gobreaker.CircuitBreaker Logger zap.Logger }
func NewCircuitBreaker ¶
type InstrumentationMiddleware ¶
type InstrumentationMiddleware struct {
// contains filtered or unexported fields
}
func NewInstrumentationMiddleware ¶
func NewInstrumentationMiddleware(operationName string) *InstrumentationMiddleware
type LoggingMiddleware ¶
type LoggingMiddleware struct {
// contains filtered or unexported fields
}
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(logger *zap.Logger) *LoggingMiddleware
type PanicRecovery ¶
type PanicRecovery struct {
// contains filtered or unexported fields
}
func NewPanicRecovery ¶
func NewPanicRecovery(logger zap.Logger) *PanicRecovery
type PrometheusMiddleware ¶
type PrometheusMiddleware struct { Histogram *prometheus.HistogramVec Counter *prometheus.CounterVec }
func NewPrometheusMiddleware ¶
func NewPrometheusMiddleware() *PrometheusMiddleware
func (*PrometheusMiddleware) Handler ¶
func (p *PrometheusMiddleware) Handler(next http.Handler) http.Handler
Metrics godoc @Summary Prometheus metrics @Description returns HTTP requests duration and Go runtime metrics @Tags Kubernetes @Produce plain @Router /metrics [get] @Success 200 {string} string "OK"
type RateLimit ¶
type RateLimit struct {
// contains filtered or unexported fields
}
func NewRateLimitMiddleware ¶
type ZipkinTracer ¶
type ZipkinTracer struct { OperationName string Tracer *zipkin.Tracer }
func NewZipKinTracerMiddleware ¶
func NewZipKinTracerMiddleware(operationName string, tracer *zipkin.Tracer) *ZipkinTracer
Click to show internal directories.
Click to hide internal directories.