Versions in this module Expand all Collapse all v0 v0.2.0 May 21, 2018 v0.1.0 May 19, 2018 Changes in this version + const SMSRetryLimit + type DB struct + func New(driver, dbname string) (*DB, error) + func (db *DB) GetLast7DaysMessageCount() (map[string]int, error) + func (db *DB) GetMessages(filter string) ([]SMS, error) + func (db *DB) GetPendingMessages(limit int) ([]SMS, error) + func (db *DB) GetStatusSummary() ([]int, error) + func (db *DB) InsertMessage(sms SMS) error + func (db *DB) UpdateMessageStatus(sms SMS) error + type SMS struct + Body string + CreatedAt string + Device string + Mobile string + Retries int + Status SMSStatus + UUID string + UpdatedAt string + type SMSStatus int + const SMSCanceled + const SMSErrored + const SMSPending + const SMSSent