Node CrowdSec Client
    Preparing search index...

    Function toGoDuration

    • Normalize a duration to the Go time.ParseDuration format used on the LAPI wire. Days are converted to hours because Go does not understand d.

      Numbers are interpreted as seconds.

      Parameters

      • input: string | number

      Returns GoDuration