(err error, parameter string)
| 98 | type apiFunc func(r *http.Request) apiFuncResult |
| 99 | |
| 100 | func invalidParamError(err error, parameter string) apiFuncResult { |
| 101 | return apiFuncResult{nil, &apiError{ |
| 102 | errorBadData, DecorateWithParamName(err, parameter), |
| 103 | }, nil, nil} |
| 104 | } |
| 105 | |
| 106 | func convertMsToTime(unixMs int64) time.Time { |
| 107 | return time.Unix(0, unixMs*int64(time.Millisecond)) |
no test coverage detected