models

package
v0.0.0-...-101adb0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	To      []string      `json:"to" validate:"required,dive,email"`
	From    string        `json:"from" validate:"required,email"`
	CC      []string      `json:"cc,omitempty" validate:"omitempty,dive,email"`
	BCC     []string      `json:"bcc,omitempty" validate:"omitempty,dive,email"`
	Subject string        `json:"subject" validate:"required,min=3,max=64"`
	Body    template.HTML `json:"body" validate:"required"`
}

func (*Email) Bind

func (r *Email) Bind(c *fiber.Ctx, v *validator.Validate) error

Jump to

Keyboard shortcuts

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