MCPcopy
hub / github.com/jackc/pgx / rxGSSContinue

Method rxGSSContinue

pgconn/krb5.go:86–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (c *PgConn) rxGSSContinue() (*pgproto3.AuthenticationGSSContinue, error) {
87 msg, err := c.receiveMessage()
88 if err != nil {
89 return nil, err
90 }
91
92 switch m := msg.(type) {
93 case *pgproto3.AuthenticationGSSContinue:
94 return m, nil
95 case *pgproto3.ErrorResponse:
96 return nil, ErrorResponseToPgError(m)
97 }
98
99 return nil, fmt.Errorf("expected AuthenticationGSSContinue message but received unexpected message %T", msg)
100}

Callers 1

gssAuthMethod · 0.95

Calls 2

receiveMessageMethod · 0.95
ErrorResponseToPgErrorFunction · 0.85

Tested by

no test coverage detected