| 25 | ) |
| 26 | |
| 27 | type StatisticInfo struct { |
| 28 | UserID string `json:"userid"` |
| 29 | RequestID string `json:"reqid,omitempty"` |
| 30 | Function string `json:"function"` |
| 31 | Version string `json:"version"` |
| 32 | StartTime int64 `json:"startms"` |
| 33 | Duration float64 `json:"duration"` |
| 34 | MemoryUsed int64 `json:"memused"` |
| 35 | StatusCode int `json:"status"` |
| 36 | } |
| 37 | |
| 38 | func (si *StatisticInfo) Encode() string { |
| 39 | data, _ := json.Marshal(si) |
nothing calls this directly
no outgoing calls
no test coverage detected