Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 1 | package sarama |
2 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 3 | //ApiVersionsRequest ... |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 4 | type ApiVersionsRequest struct { |
5 | } | ||||
6 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 7 | func (a *ApiVersionsRequest) encode(pe packetEncoder) error { |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 8 | return nil |
9 | } | ||||
10 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 11 | func (a *ApiVersionsRequest) decode(pd packetDecoder, version int16) (err error) { |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 12 | return nil |
13 | } | ||||
14 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 15 | func (a *ApiVersionsRequest) key() int16 { |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 16 | return 18 |
17 | } | ||||
18 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 19 | func (a *ApiVersionsRequest) version() int16 { |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 20 | return 0 |
21 | } | ||||
22 | |||||
Scott Baker | 8487c5d | 2019-10-18 12:49:46 -0700 | [diff] [blame^] | 23 | func (a *ApiVersionsRequest) requiredVersion() KafkaVersion { |
Scott Baker | 2d89798 | 2019-09-24 11:50:08 -0700 | [diff] [blame] | 24 | return V0_10_0_0 |
25 | } |