Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataService ¶
func NewService ¶
func NewService() (*DataService, error)
func (*DataService) GetEmailQuery ¶
func (ds *DataService) GetEmailQuery() (query string, sqlParam string)
This function generates a query to get any birthdays for today's date sqlParam needs to be in format "DD:MM"
func (*DataService) GetEmails ¶
func (ds *DataService) GetEmails() ([]Email, error)
This function will hit our database and return any birthdays that match today's date
Click to show internal directories.
Click to hide internal directories.