Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 647 Bytes
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) requiredVersion() KafkaVersion {
return V1_0_0_0
}
You can’t perform that action at this time.