Documentation ¶
Overview ¶
Package templates stores and provides basic templates for mails or CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init()
Init compiles templates and panics if encountered an error. This method is called automatically one time by `Get`.
func MailConn ¶
func MailConn() *mails.CustomClient
MailConn is a helper to return a new mail connection if available. The result is null if the mail server is not ready. Do not forget to defer the close operation!
Types ¶
type VerificationMail ¶
type VerificationMail struct {
Token string
}
VerificationMail contains the token to be sent in the verification mail
Click to show internal directories.
Click to hide internal directories.