MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / IsEntitled

Method IsEntitled

api/pkg/entities/billing_usage.go:28–30  ·  view source on GitHub ↗

IsEntitled checks if a user can send `count` messages

(count, limit uint)

Source from the content-addressed store, hash-verified

26
27// IsEntitled checks if a user can send `count` messages
28func (usage *BillingUsage) IsEntitled(count, limit uint) bool {
29 return (usage.TotalMessages() + count) < limit
30}

Callers 4

MessagesMethod · 0.45
sendSMSMethod · 0.45
PostSendMethod · 0.45
PostReceiveMethod · 0.45

Calls 1

TotalMessagesMethod · 0.95

Tested by

no test coverage detected