deliver

package
v0.0.0-...-d075b32 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Daily

func Daily(db *sql.DB, maxFailedAttempts int)

func Hourly

func Hourly(db *sql.DB, maxFailedAttempts int)

func Immediate

func Immediate(db *sql.DB, maxFailedAttempts int)

func Loop

func Loop(db *sql.DB, maxFailedAttempts int)

Types

type Delivery

type Delivery struct {
	Id      int    `json:"id"`
	Ntype   int    `json:"ntype"`
	Type    string `json:"type"`
	Attempt int    `json:"attempt"`
	Target  string `json:"target"`
	Subject string `json:"subject"`
	Body    string `json:"body"`
	Status  bool   `json:"status"`
}

type DeliveryStatus

type DeliveryStatus struct {
	Id     int  `json:"id"`
	Status bool `json:"status"`
}

Jump to

Keyboard shortcuts

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