utils

package
v0.0.0-...-9abf28d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindData

func BindData(c *gin.Context, req Request) bool

func GenerateNewToken

func GenerateNewToken(n int) string

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

func SendEmail

func SendEmail(e *email.Email) error

func VerifyToken

func VerifyToken(c *gin.Context)

Types

type Request

type Request interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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