mirror of
https://github.com/minio/minio.git
synced 2026-11-11 06:29:05 +00:00
Add initial framework for quota
This commit is contained in:
1 parent
b3f51d53c4
commit
fda50d52c8
2 files changed
+16
-1
No files matched your search
@@ -145,3 +145,16 @@ func ignoreUnImplementedObjectResources(req *http.Request) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type quotaHandler struct {
|
||||
handler http.Handler
|
||||
}
|
||||
|
||||
func (h quotaHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||
h.handler.ServeHTTP(w, req)
|
||||
}
|
||||
|
||||
// QuotaHandler implements quotas
|
||||
func QuotaHandler(h http.Handler) http.Handler {
|
||||
return quotaHandler{handler: h}
|
||||
}
|
||||
Reference in new issue
Block a user