Documentation
¶
Index ¶
Constants ¶
View Source
const ( NilMsgID MsgID = 0 MsgOriginFlow MsgOrigin = "flow" MsgOriginBroadcast MsgOrigin = "broadcast" MsgOriginTicket MsgOrigin = "ticket" MsgOriginChat MsgOrigin = "chat" DirectionIn MsgDirection = "I" DirectionOut MsgDirection = "O" )
View Source
const NilBroadcastID = BroadcastID(0)
View Source
const NilFlowID = FlowID(0)
View Source
const NilTicketID = TicketID(0)
View Source
const NilUserID = UserID(0)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BroadcastID ¶
type BroadcastID int64
type Channel ¶
type Channel struct {
ID ChannelID `json:"id"`
UUID ChannelUUID `json:"uuid"`
OrgID OrgID `json:"org_id"`
Config map[string]any `json:"config"`
}
func LoadChannel ¶
type ChannelUUID ¶
type Contact ¶
type Contact struct {
ID ContactID `json:"id"`
OrgID OrgID `json:"org_id"`
URNID URNID `json:"urn_id"`
ChatID ChatID `json:"chat_id"`
Email string `json:"email"`
}
func LoadContact ¶
type DBMsg ¶
type DBMsg struct {
ID MsgID `json:"id"`
Text string `json:"text"`
Attachments []string `json:"attachments"`
Direction MsgDirection `json:"direction"`
BroadcastID BroadcastID `json:"broadcast_id"`
FlowID FlowID `json:"flow_id"`
TicketID TicketID `json:"ticket_id"`
CreatedByID UserID `json:"created_by_id"`
CreatedOn time.Time `json:"created_on"`
}
func LoadContactMessages ¶
type MsgDirection ¶
type MsgDirection string
type MsgOut ¶
type Store ¶
Click to show internal directories.
Click to hide internal directories.