open-vault/vendor/github.com/jackc/pgx/pgproto3/notice_response.go

14 lines
311 B
Go
Raw Normal View History

2018-10-03 16:55:26 +00:00
package pgproto3
type NoticeResponse ErrorResponse
func (*NoticeResponse) Backend() {}
func (dst *NoticeResponse) Decode(src []byte) error {
return (*ErrorResponse)(dst).Decode(src)
}
func (src *NoticeResponse) Encode(dst []byte) []byte {
return append(dst, (*ErrorResponse)(src).marshalBinary('N')...)
}