From 74e36f0ead717105f26087c2cab08b41ba5a7ce8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Feb 2024 19:18:05 +0100 Subject: All: Document everything to pass revive lint --- internal/server/time.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/server/time.go') diff --git a/internal/server/time.go b/internal/server/time.go index 4e54ef6..7369f47 100644 --- a/internal/server/time.go +++ b/internal/server/time.go @@ -28,6 +28,7 @@ func RenewButtonTime(st time.Time, et time.Time) int64 { return t.Unix() } +// CountdownTime returns the time when the countdown timer should be shown func CountdownTime(st time.Time, et time.Time) int64 { d := et.Sub(st) @@ -44,6 +45,8 @@ func CountdownTime(st time.Time, et time.Time) int64 { return t.Unix() } +// NotificationTimes returns the list when the app should +// show a notification when the VPN is (about to) expire(d) func NotificationTimes(st time.Time, et time.Time) []int64 { last := []time.Duration{ time.Duration(0), -- cgit v1.2.3