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

Method Limit

api/pkg/entities/user.go:21–38  ·  view source on GitHub ↗

Limit returns the limit of a subscription

()

Source from the content-addressed store, hash-verified

19
20// Limit returns the limit of a subscription
21func (subscription SubscriptionName) Limit() uint {
22 switch subscription {
23 case SubscriptionNameProMonthly, SubscriptionNameProYearly, SubscriptionNameProLifetime:
24 return 5000
25 case SubscriptionNameUltraMonthly, SubscriptionNameUltraYearly:
26 return 10_000
27 case SubscriptionName20KMonthly, SubscriptionName20KYearly:
28 return 20_000
29 case SubscriptionName50KMonthly:
30 return 50_000
31 case SubscriptionName100KMonthly:
32 return 100_000
33 case SubscriptionName200KMonthly:
34 return 200_000
35 default:
36 return 200
37 }
38}
39
40// SubscriptionNameFree represents a free subscription
41const SubscriptionNameFree = SubscriptionName("free")

Callers 14

UsageLimitExceededMethod · 0.80
UsageLimitAlertMethod · 0.80
IsEntitledWithCountMethod · 0.80
handleLimitExceededMethod · 0.80
GetHistoryMethod · 0.80
IndexMethod · 0.80
SearchMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected