Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Status displays status code (bool)
Status bool
// IP displays request's remote address (bool)
IP bool
// Method displays the http method (bool)
Method bool
// Path displays the request path (bool)
Path bool
// EnableColors defaults to false
EnableColors bool
}
Options are the options of the logger middlweare contains 5 bools Status, IP, Method, Path, EnableColors if set to true then these will print
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns an options which all properties are true
Click to show internal directories.
Click to hide internal directories.