pkg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPersonalizationPerRequest = 1000

Variables

View Source
var (
	ErrIncorrectTemplateName        = fmt.Errorf("incorrect value for %s", "template_name")
	ErrIncorrectPersonalization     = fmt.Errorf("incorrect value for %s", "send_grid_parameters.personalization")
	ErrIncorrectPersonalizationFrom = fmt.Errorf("incorrect value for %s", "send_grid_parameters.personalization.*.from")
	ErrIncorrectPersonalizationTo   = fmt.Errorf("incorrect value for %s", "send_grid_parameters.personalization.*.to")
)

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Ok    bool   `json:"ok"`
	Error string `json:"error"`
}

type SuccessfulResponse

type SuccessfulResponse struct {
	Ok      bool   `json:"ok"`
	Message string `json:"message"`
}

type TemplgridEmailEntity

type TemplgridEmailEntity struct {
	TemplateName       string        `json:"template_name"`
	Locale             string        `json:"locale,omitempty"`
	EmailParameters    interface{}   `json:"email_parameters"`
	SendGridParameters mail.SGMailV3 `json:"send_grid_parameters"`
}

func (*TemplgridEmailEntity) Validate

func (t *TemplgridEmailEntity) Validate() error

Jump to

Keyboard shortcuts

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