CheckStateForMsg initializes the "internal" check state required for processing of the new message. NOTE: Returned CheckState object must be hashable (usable as a map key). This is used to deduplicate Check* calls, the easiest way to achieve this is to have CheckState as a pointer to some struct, a
(ctx context.Context, msgMeta *MsgMetadata)
| 40 | // this is to have CheckState as a pointer to some struct, all pointers |
| 41 | // are hashable. |
| 42 | CheckStateForMsg(ctx context.Context, msgMeta *MsgMetadata) (CheckState, error) |
| 43 | } |
| 44 | |
| 45 | // EarlyCheck is an optional module interface that can be implemented |
no outgoing calls