Versions in this module Expand all Collapse all v1 v1.0.1 Oct 10, 2018 v1.0.0 Sep 29, 2018 Changes in this version + const EMAIL + const FAKE + const SMS + var TypeDb = GetDriver() + type Database interface + Find func(ID string) (TemplateDB, error) + FindAll func() ([]TemplateDB, error) + Insert func(TemplateDB) error + Remove func(ID string) bool + func GetDriver() Database + type Event struct + AccountID string + Channel map[string]bool + CustomData map[string]string + DateCreated time.Time + Lang string + Recipient []string + Subject string + TemplateType string + type Fake struct + func (f *Fake) Find(id string) (TemplateDB, error) + func (f *Fake) FindAll() ([]TemplateDB, error) + func (f *Fake) Insert(t TemplateDB) error + func (f *Fake) Remove(id string) bool + type Message struct + Channel string + Content string + CustomData map[string]string + DateCreated time.Time + FileAttached string + MessageID string + MessageResponse MessageResponse + Recipient string + Subject string + TemplateId string + type MessageResponse struct + APIStatus string + Response string + Status string + TimeOfResponse time.Time + type MongoDB struct + func (m MongoDB) Find(ID string) (TemplateDB, error) + func (m MongoDB) FindAll() ([]TemplateDB, error) + func (m MongoDB) Insert(template TemplateDB) error + func (m MongoDB) Remove(ID string) bool + type Template struct + Channel string + Content string + Language string + TemplateId string + type TemplateDB struct + Content string + Template string