email

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCodeExpired = errs.NewI18nError("email.code.expired").FallBack("email code exceeded")
	ErrSendFailed  = errs.NewI18nError("email.send.failed").FallBack("email send failed")
)
View Source
var (
	RuleEmail = helper.Rules(is.Email)

	RuleEmailCode = helper.Rules(is.Alphanumeric, vax.EqLength(8, false))
)

Functions

This section is empty.

Types

type SendCodeEmailOption

type SendCodeEmailOption struct {
	// valid email format
	Email string `json:"email" uri:"email" form:"email" label:"field.email" example:"abc@example.com"`
}

func (SendCodeEmailOption) Validate

func (e SendCodeEmailOption) Validate(lang string) error

Jump to

Keyboard shortcuts

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