123456789101112131415161718192021222324252627282930313233 |
- package sarama
- type SaslAuthenticateRequest struct {
- SaslAuthBytes []byte
- }
- // APIKeySASLAuth is the API key for the SaslAuthenticate Kafka API
- const APIKeySASLAuth = 36
- func (r *SaslAuthenticateRequest) encode(pe packetEncoder) error {
- return pe.putBytes(r.SaslAuthBytes)
- }
- func (r *SaslAuthenticateRequest) decode(pd packetDecoder, version int16) (err error) {
- r.SaslAuthBytes, err = pd.getBytes()
- return err
- }
- func (r *SaslAuthenticateRequest) key() int16 {
- return APIKeySASLAuth
- }
- func (r *SaslAuthenticateRequest) version() int16 {
- return 0
- }
- func (r *SaslAuthenticateRequest) headerVersion() int16 {
- return 1
- }
- func (r *SaslAuthenticateRequest) requiredVersion() KafkaVersion {
- return V1_0_0_0
- }
|