windowsv3

package
v0.0.0-...-50df253 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Message = "message"
	Contact = "contact"
	Image   = "image"
	Video   = "video"
	File    = "file"
	Voice   = "voice"
)

Variables

View Source
var Groups = []*dbm.Group{
	{
		Name:      Message,
		Pattern:   `^MSG([0-9]?[0-9])?\.db$`,
		BlackList: []string{},
	},
	{
		Name:      Contact,
		Pattern:   `^MicroMsg\.db$`,
		BlackList: []string{},
	},
	{
		Name:      Image,
		Pattern:   `^HardLinkImage\.db$`,
		BlackList: []string{},
	},
	{
		Name:      Video,
		Pattern:   `^HardLinkVideo\.db$`,
		BlackList: []string{},
	},
	{
		Name:      File,
		Pattern:   `^HardLinkFile\.db$`,
		BlackList: []string{},
	},
	{
		Name:      Voice,
		Pattern:   `^MediaMSG([0-9]?[0-9])?\.db$`,
		BlackList: []string{},
	},
}

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	// contains filtered or unexported fields
}

DataSource 实现了 DataSource 接口

func New

func New(path string) (*DataSource, error)

New 创建一个新的 WindowsV3DataSource

func (*DataSource) Close

func (ds *DataSource) Close() error

Close 实现 DataSource 接口的 Close 方法

func (*DataSource) GetChatRooms

func (ds *DataSource) GetChatRooms(ctx context.Context, key string, limit, offset int) ([]*model.ChatRoom, error)

GetChatRooms 实现获取群聊信息的方法

func (*DataSource) GetContacts

func (ds *DataSource) GetContacts(ctx context.Context, key string, limit, offset int) ([]*model.Contact, error)

GetContacts 实现获取联系人信息的方法

func (*DataSource) GetMedia

func (ds *DataSource) GetMedia(ctx context.Context, _type string, key string) (*model.Media, error)

func (*DataSource) GetMessages

func (ds *DataSource) GetMessages(ctx context.Context, startTime, endTime time.Time, talker string, sender string, keyword string, limit, offset int) ([]*model.Message, error)

func (*DataSource) GetSessions

func (ds *DataSource) GetSessions(ctx context.Context, key string, limit, offset int) ([]*model.Session, error)

GetSessions 实现获取会话信息的方法

func (*DataSource) GetVoice

func (ds *DataSource) GetVoice(ctx context.Context, key string) (*model.Media, error)

func (*DataSource) SetCallback

func (ds *DataSource) SetCallback(group string, callback func(event fsnotify.Event) error) error

type MessageDBInfo

type MessageDBInfo struct {
	FilePath  string
	StartTime time.Time
	EndTime   time.Time
	TalkerMap map[string]int
}

MessageDBInfo 保存消息数据库的信息

Jump to

Keyboard shortcuts

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