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 {= append(, 'R')= pgio.AppendInt32(, 4)= pgio.AppendUint32(, AuthTypeGSS)return}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.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |