Limit returns the limit of a subscription
()
| 19 | |
| 20 | // Limit returns the limit of a subscription |
| 21 | func (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 |
| 41 | const SubscriptionNameFree = SubscriptionName("free") |
no outgoing calls
no test coverage detected