revert license response to limits tag for backward compatibility (#2519)

* revert license response to limits tag for backward compatibility

* revert tags
This commit is contained in:
Abhishek K 2023-08-16 19:37:46 +05:30 committed by GitHub
parent daaf488216
commit f6dded0f2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,13 +26,13 @@ var errValidation = fmt.Errorf(license_validation_err_msg)
type LicenseKey struct {
LicenseValue string `json:"license_value"` // actual (public) key and the unique value for the key
Expiration int64 `json:"expiration"`
UsageServers int `json:"usage_servers"`
UsageUsers int `json:"usage_users"`
UsageClients int `json:"usage_clients"`
UsageHosts int `json:"usage_hosts"`
UsageNetworks int `json:"usage_networks"`
UsageIngresses int `json:"usage_ingresses"`
UsageEgresses int `json:"usage_egresses"`
UsageServers int `json:"limit_servers"`
UsageUsers int `json:"limit_users"`
UsageClients int `json:"limit_clients"`
UsageHosts int `json:"limit_hosts"`
UsageNetworks int `json:"limit_networks"`
UsageIngresses int `json:"limit_ingresses"`
UsageEgresses int `json:"limit_egresses"`
Metadata string `json:"metadata"`
IsActive bool `json:"is_active"` // yes if active
}
@ -46,7 +46,7 @@ type ValidatedLicense struct {
// LicenseSecret - the encrypted struct for sending user-id
type LicenseSecret struct {
AssociatedID string `json:"associated_id" binding:"required"` // UUID for user foreign key to User table
Usage Usage `json:"usage" binding:"required"`
Usage Usage `json:"limits" binding:"required"`
}
// Usage - struct for license usage