summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/pgproto3
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/pgproto3')
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/authentication_cleartext_password.go3
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/authentication_ok.go3
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/copy_done.go3
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/gss_enc_request.go3
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/row_description.go1
-rw-r--r--vendor/github.com/jackc/pgx/v5/pgproto3/ssl_request.go3
6 files changed, 5 insertions, 11 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_cleartext_password.go b/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_cleartext_password.go
index ac2962e9e..415e1a24a 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_cleartext_password.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_cleartext_password.go
@@ -9,8 +9,7 @@ import (
)
// AuthenticationCleartextPassword is a message sent from the backend indicating that a clear-text password is required.
-type AuthenticationCleartextPassword struct {
-}
+type AuthenticationCleartextPassword struct{}
// Backend identifies this message as sendable by the PostgreSQL backend.
func (*AuthenticationCleartextPassword) Backend() {}
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_ok.go b/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_ok.go
index ec11d39f1..98c0b2d66 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_ok.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/authentication_ok.go
@@ -9,8 +9,7 @@ import (
)
// AuthenticationOk is a message sent from the backend indicating that authentication was successful.
-type AuthenticationOk struct {
-}
+type AuthenticationOk struct{}
// Backend identifies this message as sendable by the PostgreSQL backend.
func (*AuthenticationOk) Backend() {}
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/copy_done.go b/vendor/github.com/jackc/pgx/v5/pgproto3/copy_done.go
index 040814dbd..c3421a9b5 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/copy_done.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/copy_done.go
@@ -4,8 +4,7 @@ import (
"encoding/json"
)
-type CopyDone struct {
-}
+type CopyDone struct{}
// Backend identifies this message as sendable by the PostgreSQL backend.
func (*CopyDone) Backend() {}
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/gss_enc_request.go b/vendor/github.com/jackc/pgx/v5/pgproto3/gss_enc_request.go
index 70cb20cd5..122d1341c 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/gss_enc_request.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/gss_enc_request.go
@@ -10,8 +10,7 @@ import (
const gssEncReqNumber = 80877104
-type GSSEncRequest struct {
-}
+type GSSEncRequest struct{}
// Frontend identifies this message as sendable by a PostgreSQL frontend.
func (*GSSEncRequest) Frontend() {}
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/row_description.go b/vendor/github.com/jackc/pgx/v5/pgproto3/row_description.go
index dc2a4ddf2..c40a2261b 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/row_description.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/row_description.go
@@ -56,7 +56,6 @@ func (*RowDescription) Backend() {}
// Decode decodes src into dst. src must contain the complete message with the exception of the initial 1 byte message
// type identifier and 4 byte message length.
func (dst *RowDescription) Decode(src []byte) error {
-
if len(src) < 2 {
return &invalidMessageFormatErr{messageType: "RowDescription"}
}
diff --git a/vendor/github.com/jackc/pgx/v5/pgproto3/ssl_request.go b/vendor/github.com/jackc/pgx/v5/pgproto3/ssl_request.go
index b0fc28476..bdfc7c427 100644
--- a/vendor/github.com/jackc/pgx/v5/pgproto3/ssl_request.go
+++ b/vendor/github.com/jackc/pgx/v5/pgproto3/ssl_request.go
@@ -10,8 +10,7 @@ import (
const sslRequestNumber = 80877103
-type SSLRequest struct {
-}
+type SSLRequest struct{}
// Frontend identifies this message as sendable by a PostgreSQL frontend.
func (*SSLRequest) Frontend() {}