email

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendDocumentApprovedEmail added in v0.5.0

func SendDocumentApprovedEmail(
	data DocumentApprovedEmailData,
	to []string,
	from string,
	svc *gw.Service,
) error

func SendNewOwnerEmail added in v0.5.0

func SendNewOwnerEmail(
	data NewOwnerEmailData,
	to []string,
	from string,
	svc *gw.Service,
) error

func SendReviewRequestedEmail

func SendReviewRequestedEmail(
	d ReviewRequestedEmailData,
	to []string,
	from string,
	s *gw.Service,
) error

func SendSubscriberDocumentPublishedEmail

func SendSubscriberDocumentPublishedEmail(
	d SubscriberDocumentPublishedEmailData,
	to []string,
	from string,
	s *gw.Service,
) error

Types

type DocumentApprovedEmailData added in v0.5.0

type DocumentApprovedEmailData struct {
	BaseURL                  string
	CurrentYear              int
	DocumentApprover         User
	DocumentOwner            string
	DocumentNonApproverCount int
	DocumentShortName        string
	DocumentTitle            string
	DocumentStatus           string
	DocumentStatusClass      string
	DocumentType             string
	DocumentURL              string
	Product                  string
}

type NewOwnerEmailData added in v0.5.0

type NewOwnerEmailData struct {
	BaseURL             string
	CurrentYear         int
	DocumentShortName   string
	DocumentStatus      string
	DocumentStatusClass string
	DocumentTitle       string
	DocumentType        string
	DocumentURL         string
	NewDocumentOwner    User
	OldDocumentOwner    User
	Product             string
}

type ReviewRequestedEmailData

type ReviewRequestedEmailData struct {
	BaseURL             string
	CurrentYear         int
	DocumentOwner       string
	DocumentShortName   string
	DocumentTitle       string
	DocumentType        string
	DocumentStatus      string
	DocumentStatusClass string
	DocumentURL         string
	Product             string
}

type SubscriberDocumentPublishedEmailData

type SubscriberDocumentPublishedEmailData struct {
	BaseURL           string
	CurrentYear       int
	DocumentOwner     string
	DocumentShortName string
	DocumentTitle     string
	DocumentType      string
	DocumentURL       string
	Product           string
}

type User added in v0.5.0

type User struct {
	EmailAddress string
	Name         string
}

Jump to

Keyboard shortcuts

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