api_versions_request.go 451 B

12345678910111213141516171819202122232425
  1. package sarama
  2. //ApiVersionsRequest ...
  3. type ApiVersionsRequest struct {
  4. }
  5. func (a *ApiVersionsRequest) encode(pe packetEncoder) error {
  6. return nil
  7. }
  8. func (a *ApiVersionsRequest) decode(pd packetDecoder, version int16) (err error) {
  9. return nil
  10. }
  11. func (a *ApiVersionsRequest) key() int16 {
  12. return 18
  13. }
  14. func (a *ApiVersionsRequest) version() int16 {
  15. return 0
  16. }
  17. func (a *ApiVersionsRequest) requiredVersion() KafkaVersion {
  18. return V0_10_0_0
  19. }