Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { // should be now() in most cases, but this field is useful for testing purposes Today time.Time InNbDays int // when false, check birthdays which matches exactly Today + InNbDays // when true, check birthdays which matches every days between Today and Today + InNbDays Inclusive bool }
Params holds remind context and conditions passed to the app as parameters
type Reminder ¶
Reminder contains business logic between Params and Contacts
func (Reminder) ContactsToRemind ¶
ContactsToRemind filters every contacts which the bday matches the reminder's conditions.
Click to show internal directories.
Click to hide internal directories.