fix: export ReadWriteRatesConfig struct as it needs to referenced from consul-k8s (#16766)

This commit is contained in:
Poonam Jadhav 2023-03-29 09:54:59 -04:00 committed by GitHub
parent b64674623e
commit 3e69ff1cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -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.