summaryrefslogtreecommitdiff
path: root/kafka/structs.py
diff options
context:
space:
mode:
authorApurva007 <apurvatelang15@gmail.com>2020-09-16 17:33:45 -0700
committerGitHub <noreply@github.com>2020-09-16 17:33:45 -0700
commit26b8400ecafe9853bbb8ee3caf04a0a53eb6b224 (patch)
treecd994249379d7cf024ef851385cfafed681988cc /kafka/structs.py
parente4913db244ca4d435d279d3047aef3c1c01ebd51 (diff)
downloadkafka-python-26b8400ecafe9853bbb8ee3caf04a0a53eb6b224.tar.gz
Enhancement for Kafka Admin Client's "Describe Consumer Group" (#2035)
Adding namedtuples for DescribeConsumerGroup response; Adding Serialization of MemberData and MemberAssignment for the response Co-authored-by: Apurva Telang <atelang@paypal.com> Co-authored-by: Jeff Widman <jeff@jeffwidman.com>
Diffstat (limited to 'kafka/structs.py')
-rw-r--r--kafka/structs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kafka/structs.py b/kafka/structs.py
index 0d225bc..bcb0236 100644
--- a/kafka/structs.py
+++ b/kafka/structs.py
@@ -70,6 +70,11 @@ Keyword Arguments:
OffsetAndTimestamp = namedtuple("OffsetAndTimestamp",
["offset", "timestamp"])
+MemberInformation = namedtuple("MemberInformation",
+ ["member_id", "client_id", "client_host", "member_metadata", "member_assignment"])
+
+GroupInformation = namedtuple("GroupInformation",
+ ["error_code", "group", "state", "protocol_type", "protocol", "members", "authorized_operations"])
"""Define retry policy for async producer