- responseFatalJSON(w, r, err) replaces responseJSON(w, r, 500, err) and calls fatal() when the following fail because they are not recoverable. There may be other non-recoverable errors but it is difficult to be 100% sure they cannot be engineered by the caller of the API for DoS purposes. - openDB - findCache - cache.Repo != repo - wrap errors in - openDB() - it was missing - readCache() - it was missing - useCache() - it was missing - findCache() - some had identical messages - in gc - replace logger.Warnf with h.fatal - differentiate errors that have identical messages - call fatal if openDB fails instead of returning |
||
|---|---|---|
| .. | ||
| testdata/example | ||
| doc.go | ||
| handler.go | ||
| handler_test.go | ||
| mac.go | ||
| mac_test.go | ||
| model.go | ||
| storage.go | ||