diff options
Diffstat (limited to 'vendor/github.com/jackc/pgx/pgproto3/bind_complete.go')
| -rw-r--r-- | vendor/github.com/jackc/pgx/pgproto3/bind_complete.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/github.com/jackc/pgx/pgproto3/bind_complete.go b/vendor/github.com/jackc/pgx/pgproto3/bind_complete.go deleted file mode 100644 index 6036051..0000000 --- a/vendor/github.com/jackc/pgx/pgproto3/bind_complete.go +++ /dev/null @@ -1,29 +0,0 @@ -package pgproto3 - -import ( - "encoding/json" -) - -type BindComplete struct{} - -func (*BindComplete) Backend() {} - -func (dst *BindComplete) Decode(src []byte) error { - if len(src) != 0 { - return &invalidMessageLenErr{messageType: "BindComplete", expectedLen: 0, actualLen: len(src)} - } - - return nil -} - -func (src *BindComplete) Encode(dst []byte) []byte { - return append(dst, '2', 0, 0, 0, 4) -} - -func (src *BindComplete) MarshalJSON() ([]byte, error) { - return json.Marshal(struct { - Type string - }{ - Type: "BindComplete", - }) -} |
