campaigns

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCampaignEvent

func HandleCampaignEvent(mr *mailroom.Mailroom, task *queue.Task) error

HandleCampaignEvent is called by mailroom when a campaign event task is ready to be processed.

func StartCampaignCron

func StartCampaignCron(mr *mailroom.Mailroom) error

StartCampaignCron starts our cron job of firing expired campaign events

Types

type EventFire

type EventFire struct {
	FireID    int             `db:"fire_id"`
	ContactID flows.ContactID `db:"contact_id"`
	Fired     *time.Time      `db:"fired"`
}

EventFire represents a single campaign event fire for an event and contact

Jump to

Keyboard shortcuts

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