| 141 | } |
| 142 | |
| 143 | type accessLogEntry struct { |
| 144 | Method string `json:"method"` |
| 145 | Host string `json:"host"` |
| 146 | Path string `json:"path"` |
| 147 | IP string `json:"ip"` |
| 148 | ResponseTime float64 `json:"response_time"` |
| 149 | |
| 150 | encoded []byte |
| 151 | err error |
| 152 | } |
| 153 | |
| 154 | func (ale *accessLogEntry) ensureEncoded() { |
| 155 | if ale.encoded == nil && ale.err == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected