Documentation ¶
Index ¶
- func NoopHandler(ctx context.Context, tx *sqlx.Tx, rp *redis.Pool, org *models.OrgAssets, ...) error
- type CommitAddedLabelsHook
- type CommitFieldChangesHook
- type CommitGroupChangesHook
- type CommitIVRHook
- type CommitLanguageChangesHook
- type CommitMessagesHook
- type CommitNameChangesHook
- type CommitURNChangesHook
- type ContactModifiedHook
- type FieldDelete
- type FieldUpdate
- type FieldValue
- type InsertStartHook
- type InsertWebhookEventHook
- type InsertWebhookResultHook
- type SendEmailsHook
- type SendMessagesHook
- type StartBroadcastsHook
- type StartStartHook
- 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 CommitIVRHook ¶ added in v0.0.74
type CommitIVRHook struct{}
CommitIVRHook is our hook for comitting session messages / say commands
func (*CommitIVRHook) Apply ¶ added in v0.0.74
func (h *CommitIVRHook) 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 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 InsertStartHook ¶ added in v0.0.126
type InsertStartHook struct{}
InsertStartHook is our hook to fire insert our starts
type InsertWebhookEventHook ¶ added in v0.0.84
type InsertWebhookEventHook struct{}
InsertWebhookEventHook is our hook for when a resthook needs to be inserted
type InsertWebhookResultHook ¶ added in v0.0.76
type InsertWebhookResultHook struct{}
InsertWebhookResultHook is our hook for inserting webhook results
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 StartStartHook ¶ added in v0.0.126
type StartStartHook struct{}
StartStartHook 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
Source Files ¶
- broadcast_created.go
- campaigns.go
- contact_field_changed.go
- contact_groups_changed.go
- contact_language_changed.go
- contact_modified.go
- contact_name_changed.go
- contact_urns_changed.go
- email_created.go
- input_labels_added.go
- ivr_created.go
- msg_created.go
- msg_received.go
- noop.go
- resthook_called.go
- session_triggered.go
- webhook_called.go