Message is the interface implemented by an object that can decode and encode a particular PostgreSQL message.
| 15 | // Message is the interface implemented by an object that can decode and encode |
| 16 | // a particular PostgreSQL message. |
| 17 | type Message interface { |
| 18 | // Decode is allowed and expected to retain a reference to data after |
| 19 | // returning (unlike encoding.BinaryUnmarshaler). |
| 20 | Decode(data []byte) error |
| 21 | |
| 22 | // Encode appends itself to dst and returns the new buffer. |
| 23 | Encode(dst []byte) ([]byte, error) |
| 24 | } |
| 25 | |
| 26 | // FrontendMessage is a message sent by the frontend (i.e. the client). |
| 27 | type FrontendMessage interface { |
no outgoing calls
no test coverage detected