Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareRequests ¶
type MiddlewareRequests struct {
// contains filtered or unexported fields
}
func New ¶
func New(metrics *metrics.Metrics) *MiddlewareRequests
New конструктор прослойки для http-запросов.
func (*MiddlewareRequests) AfterHandle ¶
func (m *MiddlewareRequests) AfterHandle(next http.Handler) http.Handler
AfterHandle - middleware для метрик, подсчитываемых после выполнения обработчика запроса.
func (*MiddlewareRequests) BeforeHandle ¶
func (m *MiddlewareRequests) BeforeHandle(next http.Handler) http.Handler
BeforeHandle - middleware для метрик, подсчитываемых до выполнения обработчика запроса.
Click to show internal directories.
Click to hide internal directories.