-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapirate.go
39 lines (28 loc) · 1.2 KB
/
apirate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package emailvalidator
import "time"
type apiRate struct {
Interval time.Duration
Limit int
}
// AARate is a type alias for AbstractAPI rate limit configuration
type AARate apiRate
// HunterRate is a type alias for Hunter API rate limit configuration
type HunterRate apiRate
var (
// AbstractAPIFree represents API Rate limit under free plan
AbstractAPIFree = AARate{Interval: time.Second, Limit: 1}
// AbstractAPIStarter represents API Rate limit under starter plan
AbstractAPIStarter = AARate{Interval: time.Second, Limit: 3}
// AbstractAPIStandard represents API Rate limit under standard plan
AbstractAPIStandard = AARate{Interval: time.Second, Limit: 10}
// AbstractAPIBusiness represents API Rate limit under business plan
AbstractAPIBusiness = AARate{Interval: time.Second, Limit: 25}
// AbstractAPIProfessional represents API Rate limit under professional plan
AbstractAPIProfessional = AARate{Interval: time.Second, Limit: 50}
// AbstractAPIGrowth represents API Rate limit under growth plan
AbstractAPIGrowth = AARate{Interval: time.Second, Limit: 100}
)
var (
// HunterAPIRate represents API Rate limit for email verify API
HunterAPIRate = HunterRate{Interval: time.Second, Limit: 10}
)