(sender byte, encodedLen int32, msg Message)
| 30 | } |
| 31 | |
| 32 | func (t *tracer) traceMessage(sender byte, encodedLen int32, msg Message) { |
| 33 | switch msg := msg.(type) { |
| 34 | case *AuthenticationCleartextPassword: |
| 35 | t.traceAuthenticationCleartextPassword(sender, encodedLen, msg) |
| 36 | case *AuthenticationGSS: |
| 37 | t.traceAuthenticationGSS(sender, encodedLen, msg) |
| 38 | case *AuthenticationGSSContinue: |
| 39 | t.traceAuthenticationGSSContinue(sender, encodedLen, msg) |
| 40 | case *AuthenticationMD5Password: |
| 41 | t.traceAuthenticationMD5Password(sender, encodedLen, msg) |
| 42 | case *AuthenticationOk: |
| 43 | t.traceAuthenticationOk(sender, encodedLen, msg) |
| 44 | case *AuthenticationSASL: |
| 45 | t.traceAuthenticationSASL(sender, encodedLen, msg) |
| 46 | case *AuthenticationSASLContinue: |
| 47 | t.traceAuthenticationSASLContinue(sender, encodedLen, msg) |
| 48 | case *AuthenticationSASLFinal: |
| 49 | t.traceAuthenticationSASLFinal(sender, encodedLen, msg) |
| 50 | case *BackendKeyData: |
| 51 | t.traceBackendKeyData(sender, encodedLen, msg) |
| 52 | case *Bind: |
| 53 | t.traceBind(sender, encodedLen, msg) |
| 54 | case *BindComplete: |
| 55 | t.traceBindComplete(sender, encodedLen, msg) |
| 56 | case *CancelRequest: |
| 57 | t.traceCancelRequest(sender, encodedLen, msg) |
| 58 | case *Close: |
| 59 | t.traceClose(sender, encodedLen, msg) |
| 60 | case *CloseComplete: |
| 61 | t.traceCloseComplete(sender, encodedLen, msg) |
| 62 | case *CommandComplete: |
| 63 | t.traceCommandComplete(sender, encodedLen, msg) |
| 64 | case *CopyBothResponse: |
| 65 | t.traceCopyBothResponse(sender, encodedLen, msg) |
| 66 | case *CopyData: |
| 67 | t.traceCopyData(sender, encodedLen, msg) |
| 68 | case *CopyDone: |
| 69 | t.traceCopyDone(sender, encodedLen, msg) |
| 70 | case *CopyFail: |
| 71 | t.traceCopyFail(sender, encodedLen, msg) |
| 72 | case *CopyInResponse: |
| 73 | t.traceCopyInResponse(sender, encodedLen, msg) |
| 74 | case *CopyOutResponse: |
| 75 | t.traceCopyOutResponse(sender, encodedLen, msg) |
| 76 | case *DataRow: |
| 77 | t.traceDataRow(sender, encodedLen, msg) |
| 78 | case *Describe: |
| 79 | t.traceDescribe(sender, encodedLen, msg) |
| 80 | case *EmptyQueryResponse: |
| 81 | t.traceEmptyQueryResponse(sender, encodedLen, msg) |
| 82 | case *ErrorResponse: |
| 83 | t.traceErrorResponse(sender, encodedLen, msg) |
| 84 | case *Execute: |
| 85 | t.traceExecute(sender, encodedLen, msg) |
| 86 | case *Flush: |
| 87 | t.traceFlush(sender, encodedLen, msg) |
| 88 | case *FunctionCall: |
| 89 | t.traceFunctionCall(sender, encodedLen, msg) |
no test coverage detected