Documentation
¶
Index ¶
Constants ¶
View Source
const TypeChatOut string = "chat_out"
View Source
const TypeChatResumed string = "chat_resumed"
View Source
const TypeChatStarted string = "chat_started"
View Source
const TypeHistory string = "history"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatOutEvent ¶
type ChatOutEvent struct {
MsgOut *models.MsgOut `json:"msg_out,omitempty"`
// contains filtered or unexported fields
}
func NewChatMsgOut ¶
func NewChatMsgOut(MsgOut *models.MsgOut) *ChatOutEvent
type ChatResumed ¶
type ChatResumed struct {
ChatID models.ChatID `json:"chat_id"`
Email string `json:"email"`
// contains filtered or unexported fields
}
func NewChatResumed ¶
func NewChatResumed(chatID models.ChatID, email string) *ChatResumed
type ChatStarted ¶
type ChatStarted struct {
ChatID models.ChatID `json:"chat_id"`
// contains filtered or unexported fields
}
func NewChatStarted ¶
func NewChatStarted(chatID models.ChatID) *ChatStarted
type HistoryEvent ¶
type HistoryEvent struct {
History []*HistoryItem `json:"history"`
// contains filtered or unexported fields
}
func NewHistory ¶
func NewHistory(history []*HistoryItem) *HistoryEvent
Click to show internal directories.
Click to hide internal directories.