snooze

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(now time.Time, schedule config.ScheduleConfig) (time.Time, time.Duration, error)

Calculate computes the interval of time to delay notifications for based on the current time and scheduled check-in time.

Returned is the wall clock time (as a time.Time) of the closest scheduled time the snooze was calculated from and the time.Duration of time to delay notifications for.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL