package pgproto3

import (
	
	
	

	
)

const gssEncReqNumber = 80877104

type GSSEncRequest struct {
}

// Frontend identifies this message as sendable by a PostgreSQL frontend.
func (*GSSEncRequest) () {}

func ( *GSSEncRequest) ( []byte) error {
	if len() < 4 {
		return errors.New("gss encoding request too short")
	}

	 := binary.BigEndian.Uint32()

	if  != gssEncReqNumber {
		return errors.New("bad gss encoding request code")
	}

	return nil
}

// Encode encodes src into dst. dst will include the 4 byte message length.
func ( *GSSEncRequest) ( []byte) []byte {
	 = pgio.AppendInt32(, 8)
	 = pgio.AppendInt32(, gssEncReqNumber)
	return 
}

// MarshalJSON implements encoding/json.Marshaler.
func ( GSSEncRequest) () ([]byte, error) {
	return json.Marshal(struct {
		            string
		 uint32
		      map[string]string
	}{
		: "GSSEncRequest",
	})
}