MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Encode

Method Encode

server/authentication_scram.go:343–347  ·  view source on GitHub ↗

Encode returns the struct as an AuthenticationSASLContinue message.

()

Source from the content-addressed store, hash-verified

341
342// Encode returns the struct as an AuthenticationSASLContinue message.
343func (sc SASLContinue) Encode() *pgproto3.AuthenticationSASLContinue {
344 return &pgproto3.AuthenticationSASLContinue{
345 Data: []byte(fmt.Sprintf("r=%s,s=%s,i=%d", sc.Nonce, sc.Salt, sc.Iterations)),
346 }
347}
348
349// MessageWithoutProof returns the client-final-message-without-proof.
350func (sr SASLResponse) MessageWithoutProof() []byte {

Callers 10

handleAuthenticationMethod · 0.95
GetDSNFunction · 0.45
uuid_outFunction · 0.45
verifySASLClientProofFunction · 0.45
serializeTypeIntervalFunction · 0.45
encodeColumnDataFunction · 0.45
SearchCodeFunction · 0.45
TestBindingWithTextArrayFunction · 0.45
EncodeMessageFunction · 0.45
JSONMarshalFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestBindingWithTextArrayFunction · 0.36