go-throttle/config.go
2021-01-19 00:13:33 +03:00

12 lines
183 B
Go

package throttle
import "time"
type Config struct {
NumTokens float64
Delay time.Duration
RefillRate float64
DefaultCost float64
Capacity float64
MaxCapacity int
}