wechatdb

package
v0.0.0-...-8be0883 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func New

func New(path string, platform string, version int) (*DB, error)

func (*DB) Close

func (w *DB) Close() error

func (*DB) GetChatRooms

func (w *DB) GetChatRooms(key string, limit, offset int) (*GetChatRoomsResp, error)

func (*DB) GetContacts

func (w *DB) GetContacts(key string, limit, offset int) (*GetContactsResp, error)

func (*DB) GetMedia

func (w *DB) GetMedia(_type string, key string) (*model.Media, error)

func (*DB) GetMessages

func (w *DB) GetMessages(start, end time.Time, talker string, sender string, keyword string, limit, offset int) ([]*model.Message, error)

func (*DB) GetSessions

func (w *DB) GetSessions(key string, limit, offset int) (*GetSessionsResp, error)

func (*DB) Initialize

func (w *DB) Initialize() error

func (*DB) SetCallback

func (w *DB) SetCallback(group string, callback func(event fsnotify.Event) error) error

type GetChatRoomsResp

type GetChatRoomsResp struct {
	Items []*model.ChatRoom `json:"items"`
}

type GetContactsResp

type GetContactsResp struct {
	Items []*model.Contact `json:"items"`
}

type GetSessionsResp

type GetSessionsResp struct {
	Items []*model.Session `json:"items"`
}

Directories

Path Synopsis
dbm
v4

Jump to

Keyboard shortcuts

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