-
Notifications
You must be signed in to change notification settings - Fork 0
/
gob.go
62 lines (60 loc) · 1.57 KB
/
gob.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package pgvcr
import (
"encoding/gob"
"github.com/jackc/pgx/v5/pgproto3"
)
func init() {
for _, msg := range []pgproto3.Message{
&pgproto3.AuthenticationCleartextPassword{},
&pgproto3.AuthenticationGSS{},
&pgproto3.AuthenticationGSSContinue{},
&pgproto3.AuthenticationMD5Password{},
&pgproto3.AuthenticationOk{},
&pgproto3.AuthenticationSASL{},
&pgproto3.AuthenticationSASLContinue{},
&pgproto3.AuthenticationSASLFinal{},
&pgproto3.BackendKeyData{},
&pgproto3.Bind{},
&pgproto3.BindComplete{},
&pgproto3.CancelRequest{},
&pgproto3.Close{},
&pgproto3.CloseComplete{},
&pgproto3.CommandComplete{},
&pgproto3.CopyBothResponse{},
&pgproto3.CopyData{},
&pgproto3.CopyDone{},
&pgproto3.CopyFail{},
&pgproto3.CopyInResponse{},
&pgproto3.CopyOutResponse{},
&pgproto3.DataRow{},
&pgproto3.Describe{},
&pgproto3.EmptyQueryResponse{},
&pgproto3.ErrorResponse{},
&pgproto3.Execute{},
&pgproto3.Flush{},
&pgproto3.FunctionCall{},
&pgproto3.FunctionCallResponse{},
&pgproto3.GSSEncRequest{},
&pgproto3.GSSResponse{},
&pgproto3.NoData{},
&pgproto3.NoticeResponse{},
&pgproto3.NotificationResponse{},
&pgproto3.ParameterDescription{},
&pgproto3.ParameterStatus{},
&pgproto3.Parse{},
&pgproto3.ParseComplete{},
&pgproto3.PasswordMessage{},
&pgproto3.PortalSuspended{},
&pgproto3.Query{},
&pgproto3.ReadyForQuery{},
&pgproto3.RowDescription{},
&pgproto3.SASLInitialResponse{},
&pgproto3.SASLResponse{},
&pgproto3.SSLRequest{},
&pgproto3.StartupMessage{},
&pgproto3.Sync{},
&pgproto3.Terminate{},
} {
gob.Register(msg)
}
}