mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-21 23:20:22 +00:00
* Use composites for internal structures. Fix alignment of structures across Fiber * Update struct alignment in test files * Enable alignment check with govet * Fix ctx autoformat unit-test * Revert app Config struct. Add betteralign to Makefile * Disable comment on alert since it wont work for forks * Update benchmark.yml * Update benchmark.yml * Remove warning from using positional fields * Update router.go
19 lines
343 B
Go
19 lines
343 B
Go
package logger
|
|
|
|
import (
|
|
"sync/atomic"
|
|
"time"
|
|
)
|
|
|
|
// Data is a struct to define some variables to use in custom logger function.
|
|
type Data struct {
|
|
Start time.Time
|
|
Stop time.Time
|
|
ChainErr error
|
|
Timestamp atomic.Value
|
|
Pid string
|
|
ErrPaddingStr string
|
|
TemplateChain [][]byte
|
|
LogFuncChain []LogFunc
|
|
}
|