services

package
v0.0.0-...-eef500e Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FromAddr           = "loggr@dahlton.org"
	FromName           = "Loggr Support"
	ForgotPWTemplateId = "d-aa25aab5cda3468db8505bb30209cd47"
	NewUserTemplateId  = "d-d4f1bfd77cd146548d5eb5f0cb669832"
)

Variables

View Source
var (
	ErrImageNil    = errors.New("imgbb: image is nil")
	ErrImageUpload = errors.New("imgbb: image upload failed")
)

Functions

func NewUserTemplate

func NewUserTemplate(addr, user string) []byte

func ResetPasswordTemplate

func ResetPasswordTemplate(addr, resetLink string) []byte

Types

type ImageBB

type ImageBB struct {
	// contains filtered or unexported fields
}

func NewImageBB

func NewImageBB(k string) *ImageBB

func (*ImageBB) StoreImage

func (i *ImageBB) StoreImage(image io.Reader, name string) (string, error)

type MailService

type MailService struct {
	// contains filtered or unexported fields
}

func NewMailService

func NewMailService(sendGridKey string) *MailService

func (*MailService) SendEmailWithTemplate

func (ms *MailService) SendEmailWithTemplate(addr, resetLink string, tf templateFunc) (string, error)

Jump to

Keyboard shortcuts

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