blob: 25f8d5eb36b4f85731ef2858376b4108395bc9a7 [file] [log] [blame]
William Kurkianea869482019-04-09 15:16:11 -04001package sarama
2
3type LeaveGroupResponse struct {
4 Err KError
5}
6
7func (r *LeaveGroupResponse) encode(pe packetEncoder) error {
8 pe.putInt16(int16(r.Err))
9 return nil
10}
11
12func (r *LeaveGroupResponse) decode(pd packetDecoder, version int16) (err error) {
13 kerr, err := pd.getInt16()
14 if err != nil {
15 return err
16 }
17 r.Err = KError(kerr)
18
19 return nil
20}
21
22func (r *LeaveGroupResponse) key() int16 {
23 return 13
24}
25
26func (r *LeaveGroupResponse) version() int16 {
27 return 0
28}
29
khenaidoo106c61a2021-08-11 18:05:46 -040030func (r *LeaveGroupResponse) headerVersion() int16 {
31 return 0
32}
33
William Kurkianea869482019-04-09 15:16:11 -040034func (r *LeaveGroupResponse) requiredVersion() KafkaVersion {
35 return V0_9_0_0
36}