Source File
authentication_gss.go
Belonging Package
github.com/jackc/pgx/v5/pgproto3
package pgproto3import ()type AuthenticationGSS struct{}func ( *AuthenticationGSS) () {}func ( *AuthenticationGSS) () {}func ( *AuthenticationGSS) ( []byte) error {if len() < 4 {return errors.New("authentication message too short")}:= binary.BigEndian.Uint32()if != AuthTypeGSS {return errors.New("bad auth type")}return nil}func ( *AuthenticationGSS) ( []byte) ([]byte, error) {, := beginMessage(, 'R')= pgio.AppendUint32(, AuthTypeGSS)return finishMessage(, )}func ( *AuthenticationGSS) () ([]byte, error) {return json.Marshal(struct {string[]byte}{: "AuthenticationGSS",})}func ( *AuthenticationGSS) ( []byte) error {// Ignore null, like in the main JSON package.if string() == "null" {return nil}var struct {string}if := json.Unmarshal(, &); != nil {return}return nil}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)