123456789101112131415161718192021222324252627282930313233 |
- package sarama
- type SaslHandshakeRequest struct {
- Mechanism string
- }
- func (r *SaslHandshakeRequest) encode(pe packetEncoder) error {
- if err := pe.putString(r.Mechanism); err != nil {
- return err
- }
- return nil
- }
- func (r *SaslHandshakeRequest) decode(pd packetDecoder, version int16) (err error) {
- if r.Mechanism, err = pd.getString(); err != nil {
- return err
- }
- return nil
- }
- func (r *SaslHandshakeRequest) key() int16 {
- return 17
- }
- func (r *SaslHandshakeRequest) version() int16 {
- return 0
- }
- func (r *SaslHandshakeRequest) requiredVersion() KafkaVersion {
- return V0_10_0_0
- }
|