Documentation
¶
Index ¶
- type Service
- func (s *Service) Close()
- func (s *Service) GetChatRoom(name string) *model.ChatRoom
- func (s *Service) GetContact(userName string) *model.Contact
- func (s *Service) GetDB() *wechatdb.DB
- func (s *Service) GetMessages(start, end time.Time, talker string, limit, offset int) ([]*model.Message, error)
- func (s *Service) GetSession(limit int) (*wechatdb.GetSessionResp, error)
- func (s *Service) ListChatRoom() (*wechatdb.ListChatRoomResp, error)
- func (s *Service) ListContact() (*wechatdb.ListContactResp, error)
- func (s *Service) Start() error
- func (s *Service) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetChatRoom ¶
GetChatRoom retrieves chat room information
func (*Service) GetContact ¶
GetContact retrieves contact information
func (*Service) GetMessages ¶
func (s *Service) GetMessages(start, end time.Time, talker string, limit, offset int) ([]*model.Message, error)
GetMessages retrieves messages based on criteria
func (*Service) GetSession ¶
func (s *Service) GetSession(limit int) (*wechatdb.GetSessionResp, error)
GetSession retrieves session information
func (*Service) ListChatRoom ¶
func (s *Service) ListChatRoom() (*wechatdb.ListChatRoomResp, error)
ListChatRoom retrieves all chat rooms
func (*Service) ListContact ¶
func (s *Service) ListContact() (*wechatdb.ListContactResp, error)
ListContact retrieves all contacts
Click to show internal directories.
Click to hide internal directories.