CheckBody is executed once after the message body is received and buffered in memory or on disk. Check code should use passed mutex when working with the message header. Body can be read without locking it since it is read-only.
(ctx context.Context, header textproto.Header, body buffer.Buffer)
| 81 | // Check code should use passed mutex when working with the message header. |
| 82 | // Body can be read without locking it since it is read-only. |
| 83 | CheckBody(ctx context.Context, header textproto.Header, body buffer.Buffer) CheckResult |
| 84 | |
| 85 | // Close is called after the message processing ends, even if any of the |
| 86 | // Check* functions return an error. |
no outgoing calls