Documentation ¶
Overview ¶
Package timer provides a middleware that records execution time
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeProvider ¶
Execution Time Recorder
type TimerMiddleware ¶
type TimerMiddleware struct {
// contains filtered or unexported fields
}
func NewTimerMiddleware ¶
func NewTimerMiddleware() TimerMiddleware
func NewTimerMiddlewareWithProvider ¶
func NewTimerMiddlewareWithProvider(timeProvider TimeProvider) TimerMiddleware
func (TimerMiddleware) Apply ¶
func (timerMiddleware TimerMiddleware) Apply( run *pipeline.Run, next func(*pipeline.Run), _ *middleware.ExecutionContext, )
func (TimerMiddleware) String ¶
func (timerMiddleware TimerMiddleware) String() string
Click to show internal directories.
Click to hide internal directories.