Skip to content

Commit 2155251

Browse files
adding missed file
1 parent c1464ed commit 2155251

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/base/app_throttle.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ func NewAppThrottle(expireAt time.Time, ratio float64) *AppThrottle {
1818
}
1919
return result
2020
}
21+
22+
// DisplayAppThrottle is a type for displaying data back to the end
23+
// user via chatop. Handles infinite TTL and allows ExpiresAt to be "INFINITE"
24+
type DisplayAppThrottle struct {
25+
ExpireAt string
26+
Ratio float64
27+
}

0 commit comments

Comments
 (0)