Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (34 sloc) 868 Bytes
package sarama
type SaslAuthenticateResponse struct {
Err KError
ErrorMessage *string
SaslAuthBytes []byte
}
func (r *SaslAuthenticateResponse) encode(pe packetEncoder) error {
pe.putInt16(int16(r.Err))
if err := pe.putNullableString(r.ErrorMessage); err != nil {
return err
}
return pe.putBytes(r.SaslAuthBytes)
}
func (r *SaslAuthenticateResponse) decode(pd packetDecoder, version int16) error {
kerr, err := pd.getInt16()
if err != nil {
return err
}
r.Err = KError(kerr)
if r.ErrorMessage, err = pd.getNullableString(); err != nil {
return err
}
r.SaslAuthBytes, err = pd.getBytes()
return err
}
func (r *SaslAuthenticateResponse) key() int16 {
return APIKeySASLAuth
}
func (r *SaslAuthenticateResponse) version() int16 {
return 0
}
func (r *SaslAuthenticateResponse) requiredVersion() KafkaVersion {
return V1_0_0_0
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.