Documentation ¶
Overview ¶
Package rest exposes a simple API for posting emails
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadFormat = errors.New("invalid format")
)
Functions ¶
func ValidateFormat ¶
Types ¶
type MailerHandler ¶
MailerHandler provides implementation of method interfaces to communicate with the configured MTA for this instance
func (*MailerHandler) Filter ¶
func (mh *MailerHandler) Filter() func(string) string
Filter returns a function to filter the swagger path
func (*MailerHandler) ResolveUser ¶
func (*MailerHandler) Send ¶
func (mh *MailerHandler) Send(req *restful.Request, rsp *restful.Response)
Send puts a mail in the queue to be send
func (*MailerHandler) SwaggerTags ¶
func (mh *MailerHandler) SwaggerTags() []string
SwaggerTags list the names of the service tags declared in the swagger json implemented by this service
Click to show internal directories.
Click to hide internal directories.