Documentation ¶
Index ¶
- type BHChat
- type BHContact
- type BHIdentity
- type BHTextMessage
- type Store
- func (s *Store) AllContacts(skip int, limit int) ([]BHContact, error)
- func (s *Store) ChatByID(id string) (BHChat, error)
- func (s *Store) ChatList(skip int, limit int) ([]BHChat, error)
- func (s *Store) ChatMessages(id string, skip int, limit int, statuses ...entity.Status) ([]BHTextMessage, error)
- func (s *Store) ChatUnreadCount(id string) (uint64, error)
- func (s *Store) Close()
- func (s *Store) ContactByID(id string) (BHContact, error)
- func (s *Store) ContactByIDs(ids []string) ([]BHContact, error)
- func (s *Store) GetIdentity() (BHIdentity, error)
- func (s *Store) InsertChat(ch BHChat) error
- func (s *Store) InsertContact(contact BHContact) error
- func (s *Store) InsertTextMessage(tm BHTextMessage) error
- func (s *Store) MsgByID(id string) (BHTextMessage, error)
- func (s *Store) PutContact(contact BHContact) error
- func (s *Store) SetIdentity(id BHIdentity) error
- func (s *Store) UpdateMessage(msg BHTextMessage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BHIdentity ¶
type BHTextMessage ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ChatMessages ¶
func (*Store) ChatUnreadCount ¶ added in v0.2.0
func (*Store) GetIdentity ¶
func (s *Store) GetIdentity() (BHIdentity, error)
func (*Store) InsertChat ¶
func (*Store) InsertContact ¶
func (*Store) InsertTextMessage ¶
func (s *Store) InsertTextMessage(tm BHTextMessage) error
func (*Store) PutContact ¶ added in v0.2.0
func (*Store) SetIdentity ¶
func (s *Store) SetIdentity(id BHIdentity) error
func (*Store) UpdateMessage ¶ added in v0.1.0
func (s *Store) UpdateMessage(msg BHTextMessage) error
Click to show internal directories.
Click to hide internal directories.