Source File
copy_done.go
Belonging Package
github.com/jackc/pgx/v5/pgproto3
package pgproto3import ()type CopyDone struct{}// Backend identifies this message as sendable by the PostgreSQL backend.func (*CopyDone) () {}// Frontend identifies this message as sendable by a PostgreSQL frontend.func (*CopyDone) () {}// 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 ( *CopyDone) ( []byte) error {if len() != 0 {return &invalidMessageLenErr{messageType: "CopyDone", expectedLen: 0, actualLen: len()}}return nil}// Encode encodes src into dst. dst will include the 1 byte message type identifier and the 4 byte message length.func ( *CopyDone) ( []byte) ([]byte, error) {return append(, 'c', 0, 0, 0, 4), nil}// MarshalJSON implements encoding/json.Marshaler.func ( CopyDone) () ([]byte, error) {return json.Marshal(struct {string}{: "CopyDone",})}
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)