Documentation ¶
Index ¶
- Constants
- func CreateResourceFolderIfNotExists() error
- func GetJsonFromReader(reader io.ReadCloser) (map[string]interface{}, error)
- func GetRandomString(length int) string
- func IfFileExists(fileName string) (bool, error)
- func ReadJsonObjectAsMap(obj *fastjson.Object) map[string]interface{}
- func ToBsonD(d interface{}) (doc *bson.D, err error)
- type MailTemplateDefaults
- type SmtpClient
Constants ¶
View Source
const ResourceFolder = "./res/"
Variables ¶
This section is empty.
Functions ¶
func CreateResourceFolderIfNotExists ¶
func CreateResourceFolderIfNotExists() error
func GetJsonFromReader ¶
func GetJsonFromReader(reader io.ReadCloser) (map[string]interface{}, error)
func GetRandomString ¶
func IfFileExists ¶
func ReadJsonObjectAsMap ¶
Types ¶
type MailTemplateDefaults ¶
type SmtpClient ¶
type SmtpClient struct { Server string // contains filtered or unexported fields }
func NewMailClient ¶
func (*SmtpClient) SendWithTextTemplate ¶
func (m *SmtpClient) SendWithTextTemplate(from string, to []string, name string, template_data interface{}) error
Click to show internal directories.
Click to hide internal directories.