MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / CheckMessageSend

Method CheckMessageSend

internal/limits/limits.go:62–62  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Implementers 1

DBEnforcerinternal/limits/enforcer.go

Calls

no outgoing calls