fix: export ReadWriteRatesConfig struct as it needs to referenced from consul-k8s (#16766)
This commit is contained in:
parent
71fb0a723e
commit
cad78f5839
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
package api
|
package api
|
||||||
|
|
||||||
type readWriteRatesConfig struct {
|
type ReadWriteRatesConfig struct {
|
||||||
ReadRate float64
|
ReadRate float64
|
||||||
WriteRate float64
|
WriteRate float64
|
||||||
}
|
}
|
||||||
|
@ -20,19 +20,19 @@ type RateLimitIPConfigEntry struct {
|
||||||
WriteRate float64
|
WriteRate float64
|
||||||
|
|
||||||
//limits specific to a type of call
|
//limits specific to a type of call
|
||||||
ACL *readWriteRatesConfig `json:",omitempty"`
|
ACL *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Catalog *readWriteRatesConfig `json:",omitempty"`
|
Catalog *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
ConfigEntry *readWriteRatesConfig `json:",omitempty"`
|
ConfigEntry *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
ConnectCA *readWriteRatesConfig `json:",omitempty"`
|
ConnectCA *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Coordinate *readWriteRatesConfig `json:",omitempty"`
|
Coordinate *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
DiscoveryChain *readWriteRatesConfig `json:",omitempty"`
|
DiscoveryChain *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Health *readWriteRatesConfig `json:",omitempty"`
|
Health *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Intention *readWriteRatesConfig `json:",omitempty"`
|
Intention *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
KV *readWriteRatesConfig `json:",omitempty"`
|
KV *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Tenancy *readWriteRatesConfig `json:",omitempty"`
|
Tenancy *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
PreparedQuery *readWriteRatesConfig `json:",omitempty"`
|
PreparedQuery *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Session *readWriteRatesConfig `json:",omitempty"`
|
Session *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
Txn *readWriteRatesConfig `json:",omitempty"`
|
Txn *ReadWriteRatesConfig `json:",omitempty"`
|
||||||
|
|
||||||
// Partition is the partition the config entry is associated with.
|
// Partition is the partition the config entry is associated with.
|
||||||
// Partitioning is a Consul Enterprise feature.
|
// Partitioning is a Consul Enterprise feature.
|
||||||
|
|
Loading…
Reference in New Issue