Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalCooldown = NewCooldownManager(30 * time.Second)
Functions ¶
func IsDailyQuotaExhausted ¶ added in v0.6.1
IsDailyQuotaExhausted checks error text for daily quota exhaustion signals
Types ¶
type CooldownManager ¶
type CooldownManager struct {
// contains filtered or unexported fields
}
func NewCooldownManager ¶
func NewCooldownManager(defaultTTL time.Duration) *CooldownManager
func (*CooldownManager) IsCooling ¶
func (cm *CooldownManager) IsCooling(providerID, model string) bool
func (*CooldownManager) List ¶
func (cm *CooldownManager) List() []*CooldownTarget
func (*CooldownManager) MarkCooldown ¶
func (*CooldownManager) Reset ¶
func (cm *CooldownManager) Reset(key string)
type CooldownTarget ¶
Click to show internal directories.
Click to hide internal directories.