MCPcopy Create free account
hub / github.com/apecloud/myduckserver / Encode

Method Encode

pgserver/authentication_scram.go:362–366  ·  view source on GitHub ↗

Encode returns the struct as an AuthenticationSASLContinue message.

()

Source from the content-addressed store, hash-verified

360
361// Encode returns the struct as an AuthenticationSASLContinue message.
362func (sc SASLContinue) Encode() *pgproto3.AuthenticationSASLContinue {
363 return &pgproto3.AuthenticationSASLContinue{
364 Data: []byte(fmt.Sprintf("r=%s,s=%s,i=%d", sc.Nonce, sc.Salt, sc.Iterations)),
365 }
366}
367
368// MessageWithoutProof returns the client-final-message-without-proof.
369func (sr SASLResponse) MessageWithoutProof() []byte {

Callers 6

handleAuthenticationMethod · 0.95
verifySASLClientProofFunction · 0.45
rowToBytesMethod · 0.45
encodeColumnDataFunction · 0.45
decodeToArrowFunction · 0.45
decodeArrayToArrowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected