package
Version:
v0.65.0
Opens a new window with list of versions in this module.
Published: Oct 21, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package mid holds the errchain error middleware shared by the JSON APIs.
Errors turns handler errors into responses: unreadable body 400, validation
failure 422, then mappers, then an opaque logged 500.
Logger logs one line per completed request. Requests to a skip path only
log on a non-2xx status, so a poll loop does not flood the log.
Mapper translates one API's own error types to a response; the first mapper
to report ok wins.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.