mirror of
https://github.com/gomods/athens
synced 2026-02-12 21:28:08 +00:00
* The proxy middleware calls an hook if set to check if the module needs to be filtered * Fixed error handling * Added a middleware func that passes the log entry down to other middlewares * Split the filter middleware in two * Moved validation middleware in its own file * Renamed filter to middleware, all the middleware stuff in a single file * Moved default hook to empty string * Split tests of filter middleware from validation middleware * Installed the validation middleware only if the hook is set * Moved filter test to middleware test * Fixed gofmt issue caused by manual merge * Fixed wrong logrus import * Removed logger from filter middleware * Moved middleware functions to own package * Removed unused argument, fixed errors * Fixed gofmt errors * Made middleware func private * Changed debuglevel from string to enum * Added comments to now public functions * Changed module alias to a shorter one * Removed white space * Split middleware in separate files, injected the hook as param * Removed commented code