Documentation ¶
Index ¶
Constants ¶
View Source
const InterviewExpiry = time.Hour * 24 * 7
Interviews expire after one week
View Source
const InterviewReminderLead = time.Hour
InterviewReminders will be send out 1 hour before the interview
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct { Name string // contains filtered or unexported fields }
Runner objects manage running operations asynchronously, similar to a daemon
func NewCleanupRunner ¶
NewCleanupRunner returns a runner that removes old data from the specified store. This includes deleting interviews that are older than one week.
func NewReminderRunner ¶
func NewReminderRunner(store db.Store, client utils.SlackClient) *Runner
NewReminderRunner will return a runner that will send reminders to slack users. Each time the runner executes, it will read from the store and
Click to show internal directories.
Click to hide internal directories.