Documentation ¶
Index ¶
- Constants
- func ReleaseContainer(c *Container)
- type Container
- func (container *Container) AcquireDevice(hostNumber string) (*store.Device, error)
- func (container *Container) ClientJID() waTypes.JID
- func (container *Container) FindMessageByID(jid waTypes.JID, id string) *events.Message
- func (container *Container) GetAllChats() []*events.Message
- func (container *Container) GetChatInJID(jid waTypes.JID) []*events.Message
- func (container *Container) GetStatusMessages() []*events.Message
- func (container *Container) HandleHistorySync(evt *waProto.HistorySync)
- func (container *Container) HandleMessageUpdates(evt *events.Message)
- func (container *Container) InitializeTables()
- func (container *Container) ParseWebMessage(chatJID waTypes.JID, webMsg *waProto.WebMessageInfo) (*events.Message, error)
- func (container *Container) SetClientJID(jid waTypes.JID)
- func (container *Container) UpsertMessages(jid waTypes.JID, message []*events.Message)
Constants ¶
View Source
const CHATS_TABLE = `` /* 247-byte string literal not displayed */
View Source
const DELETE_ALL_CHATS = `DELETE FROM whatsmeow_chats WHERE our_jid = $1`
View Source
const INSERT_CHATS = `INSERT INTO whatsmeow_chats (our_jid, chat_jid, messages) VALUES ($1, $2, $3)`
View Source
const SELECT_ALL_CHATS = `SELECT messages FROM whatsmeow_chats WHERE our_jid = $1`
View Source
const SELECT_CHATS_BY_JID = `SELECT messages FROM whatsmeow_chats WHERE our_jid = $1 AND chat_jid = $2`
View Source
const UPDATE_MESSAGES_IN_CHAT = `UPDATE whatsmeow_chats SET messages = $1 WHERE our_jid = $1 AND chat_jid = $2`
View Source
const UPSERT_CHATS = `` /* 152-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ReleaseContainer ¶
func ReleaseContainer(c *Container)
Types ¶
type Container ¶
func AcquireContainer ¶
func AcquireContainer() *Container
func (*Container) AcquireDevice ¶
func (*Container) FindMessageByID ¶
func (*Container) GetAllChats ¶
func (*Container) GetChatInJID ¶
func (*Container) GetStatusMessages ¶
func (*Container) HandleHistorySync ¶
func (container *Container) HandleHistorySync(evt *waProto.HistorySync)
func (*Container) HandleMessageUpdates ¶
func (*Container) InitializeTables ¶
func (container *Container) InitializeTables()
func (*Container) ParseWebMessage ¶
func (*Container) SetClientJID ¶
Click to show internal directories.
Click to hide internal directories.