blob: 4f33af0bca4542cb46afb1ea2c18cce8f6dcb34a [file] [log] [blame]
kesavandc71914f2022-03-25 11:19:03 +05301package sarama
2
3type (
4 QuotaEntityType string
5
6 QuotaMatchType int
7)
8
9// ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/quota/ClientQuotaEntity.java
10const (
11 QuotaEntityUser QuotaEntityType = "user"
12 QuotaEntityClientID QuotaEntityType = "client-id"
13 QuotaEntityIP QuotaEntityType = "ip"
14)
15
16// ref: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/requests/DescribeClientQuotasRequest.java
17const (
18 QuotaMatchExact QuotaMatchType = iota
19 QuotaMatchDefault
20 QuotaMatchAny
21)