wechatdb

package
v0.0.0-...-d241749 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 10 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) GetAvatar

func (w *DB) GetAvatar(username string, size string) (*model.Avatar, 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) GlobalMessageStats

func (w *DB) GlobalMessageStats() (*model.GlobalMessageStats, error)

Stats exposure

func (*DB) GlobalTodayHourly

func (w *DB) GlobalTodayHourly() ([24]int64, error)

func (*DB) GroupMessageCounts

func (w *DB) GroupMessageCounts() (map[string]int64, error)

func (*DB) GroupMessageTypeStats

func (w *DB) GroupMessageTypeStats() (map[string]int64, error)

func (*DB) GroupTodayHourly

func (w *DB) GroupTodayHourly() (map[string][24]int64, error)

func (*DB) GroupTodayMessageCounts

func (w *DB) GroupTodayMessageCounts() (map[string]int64, error)

func (*DB) GroupWeekMessageCount

func (w *DB) GroupWeekMessageCount() (int64, error)

func (*DB) Heatmap

func (w *DB) Heatmap() ([24][7]int64, error)

func (*DB) IndexMessages

func (w *DB) IndexMessages(messages []*model.Message) error

func (*DB) Initialize

func (w *DB) Initialize() error

func (*DB) IntimacyBase

func (w *DB) IntimacyBase() (map[string]*model.IntimacyBase, error)

func (*DB) MonthlyTrend

func (w *DB) MonthlyTrend(months int) ([]model.MonthlyTrend, error)

func (*DB) SearchMessages

func (w *DB) SearchMessages(req *model.SearchRequest) (*model.SearchResponse, 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