mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-02-20 05:29:07 -06:00
24 lines
363 B
Go
24 lines
363 B
Go
package common
|
|
|
|
import "time"
|
|
|
|
type TimePeriod int
|
|
|
|
const (
|
|
TimePeriodToday TimePeriod = iota
|
|
TimePeriodWeek TimePeriod = iota
|
|
TimePeriodMonth TimePeriod = iota
|
|
TimePeriodYear TimePeriod = iota
|
|
)
|
|
|
|
type TimePeriodStat struct {
|
|
Timestamp time.Time
|
|
RequestsCount int
|
|
VerifiesCount int
|
|
}
|
|
|
|
type TimeCount struct {
|
|
Timestamp time.Time
|
|
Count uint32
|
|
}
|