Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = HttpLogOptions{ Options: httplog.DefaultOptions, Body: true, }
Functions ¶
func NewHttpLogConfig ¶ added in v1.1.7
func NewHttpLogConfig(opts ...HttpLogOptions)
Types ¶
type HttpLogMiddleware ¶ added in v1.1.7
type HttpLogMiddleware struct{}
func NewHttpLogMiddleware ¶ added in v1.1.7
func NewHttpLogMiddleware() *HttpLogMiddleware
func (*HttpLogMiddleware) Middleware ¶ added in v1.1.7
func (a *HttpLogMiddleware) Middleware() func(next http.Handler) http.Handler
type HttpLogOptions ¶ added in v1.1.7
type LogMiddleware ¶
type LogMiddleware struct { }
func NewLogMiddleware ¶
func NewLogMiddleware() *LogMiddleware
func (*LogMiddleware) Middleware ¶
func (a *LogMiddleware) Middleware() func(next http.Handler) http.Handler
type MetricMiddleware ¶
type MetricMiddleware struct {
// contains filtered or unexported fields
}
func NewMetricMiddleware ¶
func NewMetricMiddleware() *MetricMiddleware
func (*MetricMiddleware) Middleware ¶
func (a *MetricMiddleware) Middleware() func(http.Handler) http.Handler
func (*MetricMiddleware) WithPrometheusHttpConfig ¶ added in v1.1.2
func (a *MetricMiddleware) WithPrometheusHttpConfig(conf *u_prometheus.HttpConfig) *MetricMiddleware
Click to show internal directories.
Click to hide internal directories.