Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() wish.Middleware
Middleware returns a middleware that logs the elapsed time of the session.
In order to provide an accurate elapsed time for the entire session, this must be called as the last middleware in the chain.
func MiddlewareWithFormat ¶
func MiddlewareWithFormat(format string) wish.Middleware
MiddlewareWithFormat returns a middleware that logs the elapsed time of the session. It accepts a format string to print the elapsed time.
In order to provide an accurate elapsed time for the entire session, this must be called as the last middleware in the chain.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.