Documentation ¶
Index ¶
- Constants
- Variables
- func CreateEvent(dp *depot.Depot, payload *CreateEventPayload) error
- func EndTrials(dp *depot.Depot) error
- func NotifyAboutEndingTrials(dp *depot.Depot) error
- func NotifyAboutTrialMidways(dp *depot.Depot) error
- func Run(dp *depot.Depot, queues []string) error
- func SendEmail(dp *depot.Depot, payload *SendEmailPayload) error
- func SendWebhook(dp *depot.Depot, payload *SendWebhookPayload)
- type CreateEventPayload
- type Event
- type SendEmailPayload
- type SendWebhookPayload
Constants ¶
View Source
const CreateEventQueue rabbitmq.QueueName = "createEvent"
View Source
const EndTrialsQueue rabbitmq.QueueName = "endTrials"
View Source
const NotifyAboutEndingTrialsQueue rabbitmq.QueueName = "notifyAboutEndingTrials"
View Source
const NotifyAboutTrialMidwaysQueue rabbitmq.QueueName = "notifyAboutTrialMidways"
View Source
const SendEmailQueue rabbitmq.QueueName = "sendEmail"
View Source
const SendWebhookQueue rabbitmq.QueueName = "sendWebhook"
Variables ¶
View Source
var Queues = []*rabbitmq.Queue{ {Name: CreateEventQueue}, {Name: EndTrialsQueue}, {Name: NotifyAboutEndingTrialsQueue, Ttl: 24 * time.Hour}, {Name: NotifyAboutTrialMidwaysQueue, Ttl: 15 * 24 * time.Hour}, {Name: SendEmailQueue}, {Name: SendWebhookQueue}, }
Functions ¶
func CreateEvent ¶
func CreateEvent(dp *depot.Depot, payload *CreateEventPayload) error
func NotifyAboutEndingTrials ¶
func NotifyAboutTrialMidways ¶
func SendWebhook ¶
func SendWebhook(dp *depot.Depot, payload *SendWebhookPayload)
Types ¶
type CreateEventPayload ¶
type CreateEventPayload = event.CreatePayload
type SendEmailPayload ¶
type SendWebhookPayload ¶
Click to show internal directories.
Click to hide internal directories.