MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / AccessLog

Struct AccessLog

middleware/log.go:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type AccessLog struct {
13 Path string `json:"path"` // 请求路径
14 Method string `json:"method"` // 请求方法
15 ReqBody string `json:"reqBody"` // 请求体内容
16 Status int `json:"status"` // 响应状态码
17 RespBody string `json:"respBody"` // 响应体内容
18 Duration time.Duration `json:"duration"` // 请求处理耗时
19}
20
21type LogMiddleware struct {
22 l *zap.Logger

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected