database

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewService(ctx *ctx.Context) *Service

func (*Service) Close

func (s *Service) Close()

Close closes the database connection

func (*Service) GetChatRooms added in v0.0.2

func (s *Service) GetChatRooms(key string, limit, offset int) (*wechatdb.GetChatRoomsResp, error)

func (*Service) GetContacts added in v0.0.2

func (s *Service) GetContacts(key string, limit, offset int) (*wechatdb.GetContactsResp, error)

func (*Service) GetDB

func (s *Service) GetDB() *wechatdb.DB

func (*Service) GetMessages

func (s *Service) GetMessages(start, end time.Time, talker string, limit, offset int) ([]*model.Message, error)

func (*Service) GetSessions added in v0.0.2

func (s *Service) GetSessions(key string, limit, offset int) (*wechatdb.GetSessionsResp, error)

GetSession retrieves session information

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL