Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender struct {
// contains filtered or unexported fields
}
EmailSender is a DataProcessor that sends email
func (*EmailSender) ProcessData ¶
ProcessData implementation
type HTTPRequestor ¶
type HTTPRequestor struct {
// contains filtered or unexported fields
}
HTTPRequestor is a DataProcessor that makes a HTTP request
func NewHTTPRequestor ¶
func NewHTTPRequestor(method, url string) *HTTPRequestor
NewHTTPRequestor is the HTTPRequestor constructor
func (*HTTPRequestor) ProcessData ¶
func (h *HTTPRequestor) ProcessData(d models.Data, outputChan chan models.Data, killChan chan error)
ProcessData implementation
type SendgridEmailSender ¶
type SendgridEmailSender struct { FromName string FromEmail string ToName string ToEmail string Subject string }
SendgridEmailSender is a DataProcessor that sends email via Sendgrid
func NewSendgridEmailSender ¶
func NewSendgridEmailSender( fromName, fromEmail, toName, toEmail, subject string, ) *SendgridEmailSender
NewSendgridEmailSender returns a new *SendgridEmailSender
func (*SendgridEmailSender) ProcessData ¶
func (s *SendgridEmailSender) ProcessData( d models.Data, outputChan chan models.Data, killChan chan error, )
ProcessData implementation
Click to show internal directories.
Click to hide internal directories.