server

package
v0.0.0-...-e4f7b32 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationRequest

type NotificationRequest struct {
	Channel string `json:"channel"`
	To      string `json:"to"`
	Subject string `json:"subject"`
	Body    string `json:"body"`
	Retries int    `json:"retries"`
	Delay   int    `json:"delay"`
}

type Server

type Server struct {
	EmailChannel     *channels.EmailChannel
	HtmlEmailChannel *channels.HtmlEmailChannel
	SMSChannel       *channels.SMSChannel
	PushChannel      *channels.PushChannel
	JobQueue         *queue.JobQueue
	Router           *gin.Engine
}

func NewServer

func NewServer(emailChannel *channels.EmailChannel, htmlEmailChannel *channels.HtmlEmailChannel, smsChannel *channels.SMSChannel, pushChannel *channels.PushChannel, jobQueue *queue.JobQueue) *Server

Jump to

Keyboard shortcuts

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