reminder

package
v1.15.13 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store stores timestamps on disk.

func New

func New() (*Store, error)

New creates a new persistent timestamp store.

func (*Store) LastSeen added in v1.14.4

func (s *Store) LastSeen(key string) time.Time

LastSeen returns the time when the key was last reset.

func (*Store) Overdue

func (s *Store) Overdue(key string) bool

Overdue returns true iff (a) overdue did not return true within 24h AND (b) the key wasn't updated within the last 90 day.

func (*Store) Reset

func (s *Store) Reset(key string) error

Reset marks a key as just see.

Jump to

Keyboard shortcuts

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