Source File
gss_enc_request.go
Belonging Package
github.com/jackc/pgx/v5/pgproto3
package pgproto3import ()const gssEncReqNumber = 80877104type 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, error) {= pgio.AppendInt32(, 8)= pgio.AppendInt32(, gssEncReqNumber)return , nil}// MarshalJSON implements encoding/json.Marshaler.func ( GSSEncRequest) () ([]byte, error) {return json.Marshal(struct {stringuint32map[string]string}{: "GSSEncRequest",})}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)