CheckMessageSend returns nil if the user may send/receive another message this calendar month, or *LimitExceededError if they have already hit the cap. Counts inbound+outbound in the current UTC month against MaxMessagesMonth.
(ctx context.Context, userID string)
| 60 | // already hit the cap. Counts inbound+outbound in the current UTC |
| 61 | // month against MaxMessagesMonth. |
| 62 | CheckMessageSend(ctx context.Context, userID string) error |
| 63 | |
| 64 | // Invalidate evicts the user's cached Limits so the next Get/Check |
| 65 | // re-reads from the database. Called by the limits-invalidate HTTP |
no outgoing calls