A duration string accepted by CrowdSec (30m, 4h, 7d, 1h30m). d is a CrowdSec extension to Go's time.ParseDuration.
30m
4h
7d
1h30m
d
time.ParseDuration
The optional brand keeps the alias distinct from a bare string while still accepting plain strings, so it documents intent without forcing casts.
string
A duration string accepted by CrowdSec (
30m,4h,7d,1h30m).dis a CrowdSec extension to Go'stime.ParseDuration.The optional brand keeps the alias distinct from a bare
stringwhile still accepting plain strings, so it documents intent without forcing casts.