aboutsummaryrefslogtreecommitdiff
path: root/quotas.go
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-09-25 23:00:57 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-09-25 23:00:57 +0200
commit982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7 (patch)
treea0b711018858b8daf918c9f066562a6f9afc04f8 /quotas.go
parent08287375736a0a57c03b4bd6d9c222dc5567db6e (diff)
downloadguichet-api.tar.gz
guichet-api.zip
done with APIapi
Diffstat (limited to 'quotas.go')
-rw-r--r--quotas.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/quotas.go b/quotas.go
index 9a2e426..e520f5c 100644
--- a/quotas.go
+++ b/quotas.go
@@ -102,10 +102,10 @@ func (q *UserQuota) WebsiteSizeBurstedPretty() string {
// --- A quota stat we can use
type QuotaStat struct {
- Current int64
- Max int64
- Ratio float64
- Burstable bool
+ Current int64 `json:"current"`
+ Max int64 `json:"max"`
+ Ratio float64 `json:"ratio"`
+ Burstable bool `json:"burstable"`
}
func NewQuotaStat(current, max int64, burstable bool) QuotaStat {
return QuotaStat {