api

package
v0.0.0-...-94179c4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(AppUrl string, mailgun *mailgun.MailgunImpl)

Types

type SendRequest

type SendRequest struct {
	Sender        string   `json:"sender"`
	Recipients    []string `json:"recipients"`
	Subject       string   `json:"subject"`
	Body          string   `json:"body"`
	BodyHtml      string   `json:"bodyHtml"`
	BccRecipients []string `json:"bccRecipients"`
}

type SendResponse

type SendResponse struct {
	Message string `json:"message"`
	EmailId string `json:"emailId"`
}

type Server

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

func (Server) Health

func (server Server) Health(w http.ResponseWriter, r *http.Request, p httprouter.Params)

func (Server) Send

func (server Server) Send(w http.ResponseWriter, r *http.Request, p httprouter.Params)

Jump to

Keyboard shortcuts

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