mirror of https://github.com/hashicorp/consul
fix: allow snake case keys for ip based rate limit config entry
parent
f45be222bb
commit
5c2deeb4c6
|
@ -4,8 +4,8 @@
|
||||||
package api
|
package api
|
||||||
|
|
||||||
type ReadWriteRatesConfig struct {
|
type ReadWriteRatesConfig struct {
|
||||||
ReadRate float64
|
ReadRate float64 `alias:"read_rate"`
|
||||||
WriteRate float64
|
WriteRate float64 `alias:"write_rate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type RateLimitIPConfigEntry struct {
|
type RateLimitIPConfigEntry struct {
|
||||||
|
@ -16,8 +16,8 @@ type RateLimitIPConfigEntry struct {
|
||||||
|
|
||||||
Meta map[string]string `json:",omitempty"`
|
Meta map[string]string `json:",omitempty"`
|
||||||
// overall limits
|
// overall limits
|
||||||
ReadRate float64
|
ReadRate float64 `alias:"read_rate"`
|
||||||
WriteRate float64
|
WriteRate float64 `alias:"write_rate"`
|
||||||
|
|
||||||
//limits specific to a type of call
|
//limits specific to a type of call
|
||||||
ACL *ReadWriteRatesConfig `json:",omitempty"` // OperationCategoryACL OperationCategory = "ACL"
|
ACL *ReadWriteRatesConfig `json:",omitempty"` // OperationCategoryACL OperationCategory = "ACL"
|
||||||
|
|
Loading…
Reference in New Issue