@@ -16,60 +16,60 @@ type DescribeClientQuotasRequest struct {
16
16
Addr net.Addr
17
17
18
18
// List of quota components to describe.
19
- Components []DescribeClientQuotasRequestComponent `kafka:"min=v0,max=v1"`
19
+ Components []DescribeClientQuotasRequestComponent
20
20
21
21
// Whether the match is strict, i.e. should exclude entities with
22
22
// unspecified entity types.
23
- Strict bool `kafka:"min=v0,max=v1"`
23
+ Strict bool
24
24
}
25
25
26
26
type DescribeClientQuotasRequestComponent struct {
27
27
// The entity type that the filter component applies to.
28
- EntityType string `kafka:"min=v0,max=v1"`
28
+ EntityType string
29
29
30
30
// How to match the entity (0 = exact name, 1 = default name,
31
31
// 2 = any specified name).
32
- MatchType int8 `kafka:"min=v0,max=v1"`
32
+ MatchType int8
33
33
34
34
// The string to match against, or null if unused for the match type.
35
- Match string `kafka:"min=v0,max=v1,nullable"`
35
+ Match string
36
36
}
37
37
38
38
// DescribeClientQuotasReesponse represents a response from a kafka broker to a describe client quota request.
39
39
type DescribeClientQuotasResponse struct {
40
40
// The amount of time that the broker throttled the request.
41
- Throttle time.Duration `kafka:"min=v0,max=v1"`
41
+ Throttle time.Duration
42
42
43
43
// Error is set to a non-nil value including the code and message if a top-level
44
44
// error was encountered when doing the update.
45
45
Error error
46
46
47
47
// List of describe client quota responses.
48
- Entries []DescribeClientQuotasResponseQuotas `kafka:"min=v0,max=v1"`
48
+ Entries []DescribeClientQuotasResponseQuotas
49
49
}
50
50
51
51
type DescribeClientQuotasEntity struct {
52
52
// The quota entity type.
53
- EntityType string `kafka:"min=v0,max=v1"`
53
+ EntityType string
54
54
55
55
// The name of the quota entity, or null if the default.
56
- EntityName string `kafka:"min=v0,max=v1,nullable"`
56
+ EntityName string
57
57
}
58
58
59
59
type DescribeClientQuotasValue struct {
60
60
// The quota configuration key.
61
- Key string `kafka:"min=v0,max=v1"`
61
+ Key string
62
62
63
63
// The quota configuration value.
64
- Value float64 `kafka:"min=v0,max=v1"`
64
+ Value float64
65
65
}
66
66
67
67
type DescribeClientQuotasResponseQuotas struct {
68
68
// List of client quota entities and their descriptions.
69
- Entities []DescribeClientQuotasEntity `kafka:"min=v0,max=v1"`
69
+ Entities []DescribeClientQuotasEntity
70
70
71
71
// The client quota configuration values.
72
- Values []DescribeClientQuotasValue `kafka:"min=v0,max=v1"`
72
+ Values []DescribeClientQuotasValue
73
73
}
74
74
75
75
// DescribeClientQuotas sends a describe client quotas request to a kafka broker and returns
0 commit comments