Files
txix a30582fa38
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
2025-07-03 12:26:31: merge [main:66e6c4b9c432b19b644d033703545d38aba3b847];
2025-07-03 12:26:31 +03:00

26 lines
308 B
Go

package entity
import (
"time"
)
type IncrementRequest struct {
Key string
Today time.Time
}
type IncrementResponse struct {
Value uint64
}
type RateLimiterRequest struct {
Key string
MaxRps int
}
type RateLimiterResponse struct {
Allow bool
Remaining int
RetryAfter time.Duration
}