Documentation ¶
Index ¶
- type Cache
- func (c *Cache) GetAllConversations() (conversations []*model_struct.LocalConversation)
- func (c *Cache) GetAllHasUnreadMessageConversations() (conversations []*model_struct.LocalConversation)
- func (c *Cache) GetConversation(conversationID string) model_struct.LocalConversation
- func (c *Cache) GetUserNameAndFaceURL(userID string, operationID string) (faceURL, name string, err error)
- func (c *Cache) Update(userID, faceURL, nickname string)
- func (c *Cache) UpdateConversation(conversation model_struct.LocalConversation)
- func (c *Cache) UpdateConversations(conversations []*model_struct.LocalConversation)
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetAllConversations ¶
func (c *Cache) GetAllConversations() (conversations []*model_struct.LocalConversation)
func (*Cache) GetAllHasUnreadMessageConversations ¶
func (c *Cache) GetAllHasUnreadMessageConversations() (conversations []*model_struct.LocalConversation)
func (*Cache) GetConversation ¶
func (c *Cache) GetConversation(conversationID string) model_struct.LocalConversation
func (*Cache) GetUserNameAndFaceURL ¶
func (*Cache) UpdateConversation ¶
func (c *Cache) UpdateConversation(conversation model_struct.LocalConversation)
func (*Cache) UpdateConversations ¶
func (c *Cache) UpdateConversations(conversations []*model_struct.LocalConversation)
Click to show internal directories.
Click to hide internal directories.