package
Version:
v0.0.0-...-f0f63f4
Opens a new window with list of versions in this module.
Published: Aug 5, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Config contains the dependencies for the handler.
New returns a new logrequest config.
func (*Config) Handler ¶
Handler will log the HTTP requests.
SetClock will set the clock.
SetLog will set the logger.
type IClock interface {
Now() time.Time
}
IClock provides clock capabilities.
type ILog interface {
Printf(format string, v ...interface{})
}
ILog provides logging capabilities.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.