defaults.go (409B)
1 package limiter 2 3 import "time" 4 5 const ( 6 // DefaultPrefix is the default prefix to use for the key in the store. 7 DefaultPrefix = "limiter" 8 9 // DefaultMaxRetry is the default maximum number of key retries under 10 // race condition (mainly used with database-based stores). 11 DefaultMaxRetry = 3 12 13 // DefaultCleanUpInterval is the default time duration for cleanup. 14 DefaultCleanUpInterval = 30 * time.Second 15 )