Documentation ¶
Index ¶
- func GetJobIdsFrom(request *web.Request) (jobIds []string, err error)
- type Blacklist
- type RecipientListImporterJob
- type RedisConfiguration
- type RequestHandler
- func (this *RequestHandler) HandleAbortAndRemove(response web.ResponseWriter, request *web.Request)
- func (this *RequestHandler) HandleSend(response web.ResponseWriter, request *web.Request)
- func (this *RequestHandler) HandleSendingFailures(response web.ResponseWriter, request *web.Request)
- func (this *RequestHandler) HandleServerConfiguration(response web.ResponseWriter, request *web.Request)
- func (this *RequestHandler) HandleStatus(response web.ResponseWriter, request *web.Request)
- type SendRequestPayload
- type Server
- type ServerConfiguration
- type ServerError
- type Set
- type StatusRequestPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RecipientListImporterJob ¶
type RecipientListImporterJob struct { Target recipientsRepository.Repository SourceRecipientsList string Key string Templates recipientsRepository.TemplatesString Blacklist Blacklist // contains filtered or unexported fields }
func (*RecipientListImporterJob) Execute ¶
func (this *RecipientListImporterJob) Execute() error
func (*RecipientListImporterJob) ExecuteAndLogErrors ¶
func (this *RecipientListImporterJob) ExecuteAndLogErrors()
func (*RecipientListImporterJob) Prepare ¶
func (this *RecipientListImporterJob) Prepare() error
type RedisConfiguration ¶
type RequestHandler ¶
type RequestHandler struct { Repository recipientsRepository.Repository ServerConfiguration ServerConfiguration }
func (*RequestHandler) HandleAbortAndRemove ¶
func (this *RequestHandler) HandleAbortAndRemove(response web.ResponseWriter, request *web.Request)
func (*RequestHandler) HandleSend ¶
func (this *RequestHandler) HandleSend(response web.ResponseWriter, request *web.Request)
func (*RequestHandler) HandleSendingFailures ¶
func (this *RequestHandler) HandleSendingFailures(response web.ResponseWriter, request *web.Request)
func (*RequestHandler) HandleServerConfiguration ¶
func (this *RequestHandler) HandleServerConfiguration(response web.ResponseWriter, request *web.Request)
func (*RequestHandler) HandleStatus ¶
func (this *RequestHandler) HandleStatus(response web.ResponseWriter, request *web.Request)
type SendRequestPayload ¶
type SendRequestPayload struct { RecipientsList string Blacklist string Templates recipientsRepository.TemplatesString }
func GetSendRequestPayloadFromRequest ¶
func GetSendRequestPayloadFromRequest(request *web.Request) (payload SendRequestPayload, err error)
type Server ¶
type Server struct { AuthToken string Repository recipientsRepository.Repository ServerConfiguration ServerConfiguration }
type ServerConfiguration ¶
type ServerConfiguration struct { RedisConfiguration RedisConfiguration AuthToken string EmailGateway string }
type ServerError ¶
type ServerError struct {
// contains filtered or unexported fields
}
func (*ServerError) Error ¶
func (this *ServerError) Error() string
type StatusRequestPayload ¶
type StatusRequestPayload struct {
JobIds []string
}
func GetStatusRequestPayloadFromRequest ¶
func GetStatusRequestPayloadFromRequest(request *web.Request) (payload StatusRequestPayload, err error)
Click to show internal directories.
Click to hide internal directories.