pepebot/limiter/action.go

16 lines
198 B
Go
Raw Permalink Normal View History

2021-05-31 10:58:16 +02:00
package limiter
import "time"
type Action struct {
Type string
Timestamp time.Time
}
2021-06-04 16:07:19 +02:00
func NewAction(t string) *Action {
a := new(Action)
a.Timestamp = time.Now()
a.Type = t
return a
}