Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerInfo ¶
type LoggerInfo struct { StartTime string Status int Duration string HostName string Method string Path string Request interface{} Response interface{} }
func (*LoggerInfo) MethodColor ¶
func (p *LoggerInfo) MethodColor() string
MethodColor is the ANSI color for appropriately logging http method to a terminal.
func (*LoggerInfo) ResetColor ¶
func (p *LoggerInfo) ResetColor() string
ResetColor resets all escape attributes.
func (*LoggerInfo) StatusCodeColor ¶
func (p *LoggerInfo) StatusCodeColor() string
StatusCodeColor is the ANSI color for appropriately logging http status code to a terminal.
Click to show internal directories.
Click to hide internal directories.