Documentation ¶
Index ¶
- func ExecuteTemplate(inj *Injector, w io.Writer, file string, data interface{}) error
- func GetFlashbag(logger *logrus.Entry, mgr *sessionstore.SessionManager) func() template.HTML
- func GetUsernameById(ds *dbservice.DBService, id uint) string
- func ParseEmailTemplate(messageType string, data interface{}) (string, error)
- type Injector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteTemplate ¶
ExecuteTemplate executed a template with the supplied data into the io.Writer w
func GetFlashbag ¶
GetFlashbag return a HTML string populated with flash messages, if available
func GetUsernameById ¶
GetUsernameById returns a username by id
func ParseEmailTemplate ¶
ParseEmailTemplate parses and email template with the given data
Types ¶
Click to show internal directories.
Click to hide internal directories.