go-throttle/config.go

12 lines
183 B
Go
Raw Normal View History

2021-01-18 21:13:16 +00:00
package throttle
import "time"
type Config struct {
NumTokens float64
Delay time.Duration
RefillRate float64
DefaultCost float64
Capacity float64
MaxCapacity int
}