summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-07-21 14:22:20 +0000
committerLibravatar GitHub <noreply@github.com>2023-07-21 14:22:20 +0000
commitfa57c699fe9d2db81d7806d6e30c0e388fa01673 (patch)
treedd0f2d52be007f8207d3ff4b851d13e46ec26625 /vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go
parent[chore]: Bump github.com/minio/minio-go/v7 from 7.0.59 to 7.0.60 (#1992) (diff)
downloadgotosocial-fa57c699fe9d2db81d7806d6e30c0e388fa01673.tar.xz
[chore]: Bump github.com/jackc/pgx/v5 from 5.4.1 to 5.4.2 (#1991)
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go')
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go b/vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go
index 83dea9638..33c3882a2 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/frontend.go
@@ -361,3 +361,7 @@ func (f *Frontend) findAuthenticationMessageType(src []byte) (BackendMessage, er
func (f *Frontend) GetAuthType() uint32 {
return f.authType
}
+
+func (f *Frontend) ReadBufferLen() int {
+ return f.cr.wp - f.cr.rp
+}