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