Documentation ¶
Index ¶
- func NoopHandler(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool, org *models.OrgAssets, ...) error
- type CommitAddedLabelsHook
- type CommitFieldChangesHook
- type CommitGroupChangesHook
- type CommitLanguageChangesHook
- type CommitMessagesHook
- type CommitNameChangesHook
- type CommitURNChangesHook
- type ContactModifiedHook
- type FieldDelete
- type FieldUpdate
- type FieldValue
- type SendEmailsHook
- type SendMessagesHook
- type StartBroadcastsHook
- type StartSessionsHook
- type UnsubscribeResthookHook
- type UpdateCampaignEventsHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitAddedLabelsHook ¶ added in v0.0.58
type CommitAddedLabelsHook struct{}
CommitAddedLabelsHook is our hook for input labels being added
type CommitFieldChangesHook ¶ added in v0.0.58
type CommitFieldChangesHook struct{}
CommitFieldChangesHook is our hook for contact field changes
type CommitGroupChangesHook ¶ added in v0.0.58
type CommitGroupChangesHook struct{}
CommitGroupChangesHook is our hook for all group changes
type CommitLanguageChangesHook ¶ added in v0.0.58
type CommitLanguageChangesHook struct{}
CommitLanguageChangesHook is our hook for language changes
type CommitMessagesHook ¶ added in v0.0.58
type CommitMessagesHook struct{}
CommitMessagesHook is our hook for comitting session messages
func (*CommitMessagesHook) Apply ¶ added in v0.0.58
func (h *CommitMessagesHook) Apply(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool, org *models.OrgAssets, sessions map[*models.Session][]interface{}) error
Apply takes care of inserting all the messages in the passed in sessions assigning topups to them as needed.
type CommitNameChangesHook ¶ added in v0.0.58
type CommitNameChangesHook struct{}
CommitNameChangesHook is our hook for name changes
func (*CommitNameChangesHook) Apply ¶ added in v0.0.58
func (h *CommitNameChangesHook) Apply(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool, org *models.OrgAssets, sessions map[*models.Session][]interface{}) error
Apply commits our contact name changes as a bulk update for the passed in map of sessions
type CommitURNChangesHook ¶ added in v0.0.58
type CommitURNChangesHook struct{}
CommitURNChangesHook is our hook for when a URN is added to a contact
type ContactModifiedHook ¶ added in v0.0.48
type ContactModifiedHook struct{}
ContactModifiedHook is our hook for contact changes that require an update to modified_on
type FieldDelete ¶
type FieldUpdate ¶
type FieldValue ¶
type FieldValue struct {
Text string `json:"text"`
}
type SendEmailsHook ¶ added in v0.0.58
type SendEmailsHook struct{}
SendEmailsHook is our hook for sending emails
type SendMessagesHook ¶ added in v0.0.58
type SendMessagesHook struct{}
SendMessagesHook is our hook for sending session messages
type StartBroadcastsHook ¶ added in v0.0.60
type StartBroadcastsHook struct{}
StartBroadcastsHook is our hook for starting the broadcasts created in these sessions
type StartSessionsHook ¶ added in v0.0.58
type StartSessionsHook struct{}
StartSessionsHook is our hook to fire our session starts
type UnsubscribeResthookHook ¶
type UnsubscribeResthookHook struct{}
UnsubscribeResthookHook is our hook for when a webhook is called
type UpdateCampaignEventsHook ¶
type UpdateCampaignEventsHook struct{}
UpdateCampaignEventsHook is our hook to update any campaign events
func (*UpdateCampaignEventsHook) Apply ¶
func (h *UpdateCampaignEventsHook) Apply(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool, org *models.OrgAssets, sessions map[*models.Session][]interface{}) error
Apply will update all the campaigns for the passed in sessions, minimizing the number of queries to do so