mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
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:
parent
7f14414363
commit
79a8785e26
1 changed files with 367 additions and 362 deletions
687
repo/repo.go
687
repo/repo.go
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue