diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-25 23:00:57 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2023-09-25 23:00:57 +0200 |
commit | 982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7 (patch) | |
tree | a0b711018858b8daf918c9f066562a6f9afc04f8 /quotas.go | |
parent | 08287375736a0a57c03b4bd6d9c222dc5567db6e (diff) | |
download | guichet-982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7.tar.gz guichet-982bd8a43c50bb5845b694dbd0b3e0ffbf43dad7.zip |
done with APIapi
Diffstat (limited to 'quotas.go')
-rw-r--r-- | quotas.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |