apihandlers

package
v0.0.0-...-4780336 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EML_FILE_EXTENSION = ".eml"
)

Variables

This section is empty.

Functions

func HealthCheckHandle

func HealthCheckHandle(c *gin.Context)

Types

type HttpEndpoints

type HttpEndpoints struct {
	// contains filtered or unexported fields
}

func NewHTTPHandler

func NewHTTPHandler(apiKeys []string, emailsDir string) *HttpEndpoints

func (*HttpEndpoints) AddRoutes

func (h *HttpEndpoints) AddRoutes(rg *gin.RouterGroup)

type SendEmailReq

type SendEmailReq struct {
	To              []string                        `json:"to"`
	Subject         string                          `json:"subject"`
	Content         string                          `json:"content"`
	HighPrio        bool                            `json:"highPrio"`
	HeaderOverrides *messagingTypes.HeaderOverrides `json:"headerOverrides"`
}

Jump to

Keyboard shortcuts

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