wom

package module
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 38 Imported by: 0

README

Puzzad's Wise Old Man

Every adventurer needs a Wise Old Man to guide them. WOM is a small backend service that performs a number of useful functions for Puzzad that can't be done client-side or within the database:

  • Generates and validates captchas
  • Sends e-mail in response to contact/support/feedback forms
  • Accepts mailing list signups and unsubscribe requests
  • Manages payment workflows

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurePocketBase

func ConfigurePocketBase(app *pocketbase.PocketBase, db *daos.Dao, mailClient mailer.Mailer, contactEmail, siteURL, senderName, senderAddress, hcaptchaSecretKey, hcaptchaSiteKey, mailingListSecret, webhookURL string, dev bool)

func GetTemplates

func GetTemplates(template string, data TemplateData) (string, error)

func SendContactFormMail

func SendContactFormMail(mailClient mailer.Mailer, contactEmail, senderName, senderAddress, email string, name string, content string) error

Types

type TemplateData

type TemplateData struct {
	Name    string
	Email   string
	Message string
	Token   string
	SiteURL string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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