Documentation ¶
Index ¶
- func New(r *http.Request, size, status int, when time.Time, duration time.Duration) (c feature.LoggerContext, err error)
- type CLoggerContext
- func (c *CLoggerContext) Duration() (duration time.Duration)
- func (c *CLoggerContext) Request() (r *http.Request)
- func (c *CLoggerContext) Size() (size int)
- func (c *CLoggerContext) StatusCode() (status int)
- func (c *CLoggerContext) TimeStamp() (when time.Time)
- func (c *CLoggerContext) URL() (parsed *url.URL)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLoggerContext ¶
type CLoggerContext struct {
// contains filtered or unexported fields
}
func (*CLoggerContext) Duration ¶
func (c *CLoggerContext) Duration() (duration time.Duration)
func (*CLoggerContext) Request ¶
func (c *CLoggerContext) Request() (r *http.Request)
func (*CLoggerContext) Size ¶
func (c *CLoggerContext) Size() (size int)
func (*CLoggerContext) StatusCode ¶
func (c *CLoggerContext) StatusCode() (status int)
func (*CLoggerContext) TimeStamp ¶
func (c *CLoggerContext) TimeStamp() (when time.Time)
func (*CLoggerContext) URL ¶
func (c *CLoggerContext) URL() (parsed *url.URL)
Click to show internal directories.
Click to hide internal directories.