Documentation ¶
Index ¶
- Variables
- func ParseEmailTemplates(files, subjects map[string]string, defaultLanguage string) (map[string]*template.Template, error)
- type DB
- func (db *DB) ExecCount(query string, args ...interface{}) (int64, error)
- func (db *DB) ExecUser(query string, args ...interface{}) error
- func (db *DB) QueryIterate(query string, f func(rows *sql.Rows) error, args ...interface{}) error
- func (db *DB) QueryScan(query string, results []interface{}, args ...interface{}) error
- func (db *DB) QueryUser(query string, results []interface{}, args ...interface{}) error
- type EmailConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("Could not find specified user")
Functions ¶
Types ¶
type EmailConfiguration ¶
type EmailConfiguration struct { EmailServer string `json:"email_server" mapstructure:"email_server"` EmailFrom string `json:"email_from" mapstructure:"email_from"` DefaultLanguage string `json:"default_language" mapstructure:"default_language"` EmailAuth smtp.Auth }
func (EmailConfiguration) TranslateString ¶
func (conf EmailConfiguration) TranslateString(strings map[string]string, lang string) string
func (EmailConfiguration) VerifyEmailServer ¶
func (conf EmailConfiguration) VerifyEmailServer() error
Click to show internal directories.
Click to hide internal directories.