Implement repo.Handler

Refactor the old HTTP handlers to fit the purpose of the new
http.Handler:

- repo.New function to instantiate a handler for a single repo (can be done
  dynamically for every request)
- Single ServeHTTP entrypoint
- Move quota management to two methods that will be implemented later
  (stubs for now)
- Move metrics update to an external function (BlobMetricFunc type)
- Use constants and options for file modes
This commit is contained in:
Konrad Wojas 2020-05-03 19:57:56 +08:00 committed by Alexander Neumann
parent 7f14414363
commit 79a8785e26

File diff suppressed because it is too large Load diff