core

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContext

func CreateContext()

func GetMessage

func GetMessage(key hsk.Key) (validation.Dataer, error)

func GetMessages

func GetMessages(page, size int) (records.Page, error)

func PopulatTemplate

func PopulatTemplate(msg Message) (string, error)

func Shutdown

func Shutdown()

Types

type Message

type Message struct {
	Name         string `hsk:"size(50)"`
	Subject      string `hsk:"size(128)"`
	Email        string `hsk:"size(128)"`
	Phone        string `hsk:"size(15)"`
	Body         string `hsk:"size(1024)"`
	To           string `hsk:"null;size(128)"`
	Sent         bool   `hsk:"default(false)"`
	Error        string `hsk:"null;size(2048)"`
	TemplateName string `hsk:"null;size(18)"`
}

func (Message) SendMessage

func (m Message) SendMessage(smtpUser, smtpPass, smtpHost string, smtpPort int) error

func (Message) Valid

func (m Message) Valid() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL