Documentation ¶
Index ¶
- Constants
- func AddHandleTask(rc redis.Conn, contactID flows.ContactID, task *queue.Task) error
- func NewExpirationTask(orgID models.OrgID, contactID flows.ContactID, sessionID models.SessionID, ...) *queue.Task
- func NewTimeoutTask(orgID models.OrgID, contactID flows.ContactID, sessionID models.SessionID, ...) *queue.Task
- type ChannelEvent
- type HandleEventTask
- type MsgEvent
- type StopEvent
- type TimedEvent
Constants ¶
View Source
const ( StopEventType = "stop_event" MsgEventType = "msg_event" NewConversationEventType = "new_conversation" ReferralEventType = "referral" ExpirationEventType = "expiration_event" TimeoutEventType = "timeout_event" )
Variables ¶
This section is empty.
Functions ¶
func AddHandleTask ¶
AddHandleTask adds a single task for the passed in contact
Types ¶
type ChannelEvent ¶ added in v0.0.69
type HandleEventTask ¶ added in v0.0.69
type MsgEvent ¶ added in v0.0.69
type MsgEvent struct { ContactID flows.ContactID `json:"contact_id"` OrgID models.OrgID `json:"org_id"` ChannelID models.ChannelID `json:"channel_id"` MsgID flows.MsgID `json:"msg_id"` MsgUUID flows.MsgUUID `json:"msg_uuid"` MsgExternalID string `json:"msg_external_id"` URN urns.URN `json:"urn"` URNID models.URNID `json:"urn_id"` Text string `json:"text"` Attachments []flows.Attachment `json:"attachments"` NewContact bool `json:"new_contact"` }
Click to show internal directories.
Click to hide internal directories.