api

package
v0.0.0-...-7ed76d0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MqChannel *amqp.Channel
	MqQUeue   amqp.Queue
	Db        db.Repository
)

Functions

func AuthRequired

func AuthRequired(c *gin.Context)

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func CreateEmail

func CreateEmail(c *gin.Context)

/////////////////////// Create email ///////////////////////

func CustomEmailSend

func CustomEmailSend(c *gin.Context)

/////////////////////// Custom email send ///////////////////////

func DeleteEmail

func DeleteEmail(c *gin.Context)

/////////////////////// Delete email ///////////////////////

func EmailSend

func EmailSend(c *gin.Context)

/////////////////////// Email send ///////////////////////

func GetEmails

func GetEmails(c *gin.Context)

/////////////////////// Get all emails ///////////////////////

func Ping

func Ping(c *gin.Context)

func SendMessage

func SendMessage(channel *amqp.Channel, queueName, emailTo, subject, message string) error

func SetJsonLogger

func SetJsonLogger() gin.HandlerFunc

func UpdateEmail

func UpdateEmail(c *gin.Context)

/////////////////////// Update email ///////////////////////

Types

This section is empty.

Jump to

Keyboard shortcuts

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