Versions in this module Expand all Collapse all v1 v1.0.0 Dec 6, 2026 Changes in this version + func QualifiesFor34HourRestart(consecutiveOffDutyHours float64) bool + type ClockStatus struct + EffectiveLegalDrive float64 + Needs30MinBreak bool + RemainingBeforeBreak float64 + RemainingCycleHours float64 + RemainingDriveHours float64 + RemainingWindowHours float64 + TomorrowMidnightRecap float64 + Violations []string + func EvaluateClocks(s ShiftState) (ClockStatus, error) + type CycleRule int + const Cycle60Hour7Day + const Cycle70Hour8Day + type ShiftState struct + Cycle CycleRule + DrivingHoursUsed float64 + DrivingSinceLast30mBreak float64 + PriorDaysOnDuty []float64 + TodayOnDutyHours float64 + WindowHoursElapsed float64 + type SplitSleeperInput struct + LongBerthHours float64 + PreSplitDrive float64 + PreSplitWindow float64 + ShortRestHours float64 + type SplitSleeperResult struct + Pattern string + Qualifies bool + RemainingDriveAfter float64 + RemainingWindowAfter float64 + WindowPausedHours float64 + func EvaluateSplitSleeper(in SplitSleeperInput) SplitSleeperResult