emailservice

package
v0.0.0-...-ac9bbf9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() error

Main runs the application. This function will only return on failure.

Types

type App

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

App is the main email service application.

func New

func New(ctx context.Context) (*App, error)

New returns a new instance of App.

func (*App) Flagset

func (a *App) Flagset() *flag.FlagSet

Flagset constructs a flag.FlagSet for the App.

func (*App) Run

func (a *App) Run() error

Run the email service. This function will only return on failure.

type Error

type Error struct {
	Message string `json:"message"`
	Field   string `json:"field"`
	Help    string `json:"help"`
}

Error is a single error returned in a Response.

type Response

type Response struct {
	Errors []Error `json:"errors,omitempty"`
}

Response is the JSON format of the body the SendGrid API returns.

Jump to

Keyboard shortcuts

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