2
0

Add CopyData and CopyDone messages support to Backend

This commit is contained in:
Roman Tkachenko
2020-11-17 14:36:02 -08:00
committed by Jack Christensen
parent c34a8731b6
commit 88b6398594
+6
View File
@@ -16,6 +16,8 @@ type Backend struct {
cancelRequest CancelRequest
_close Close
copyFail CopyFail
copyData CopyData
copyDone CopyDone
describe Describe
execute Execute
flush Flush
@@ -116,6 +118,10 @@ func (b *Backend) Receive() (FrontendMessage, error) {
msg = &b.execute
case 'f':
msg = &b.copyFail
case 'd':
msg = &b.copyData
case 'c':
msg = &b.copyDone
case 'H':
msg = &b.flush
case 'P':