Documentation
¶
Index ¶
- type DB
- func (w *DB) Close() error
- func (w *DB) GetAvatar(username string, size string) (*model.Avatar, error)
- func (w *DB) GetChatRooms(key string, limit, offset int) (*GetChatRoomsResp, error)
- func (w *DB) GetContacts(key string, limit, offset int) (*GetContactsResp, error)
- func (w *DB) GetMedia(_type string, key string) (*model.Media, error)
- func (w *DB) GetMessages(start, end time.Time, talker string, sender string, keyword string, ...) ([]*model.Message, error)
- func (w *DB) GetSessions(key string, limit, offset int) (*GetSessionsResp, error)
- func (w *DB) GlobalMessageStats() (*model.GlobalMessageStats, error)
- func (w *DB) GlobalTodayHourly() ([24]int64, error)
- func (w *DB) GroupMessageCounts() (map[string]int64, error)
- func (w *DB) GroupMessageTypeStats() (map[string]int64, error)
- func (w *DB) GroupTodayHourly() (map[string][24]int64, error)
- func (w *DB) GroupTodayMessageCounts() (map[string]int64, error)
- func (w *DB) GroupWeekMessageCount() (int64, error)
- func (w *DB) Heatmap() ([24][7]int64, error)
- func (w *DB) IndexMessages(messages []*model.Message) error
- func (w *DB) Initialize() error
- func (w *DB) IntimacyBase() (map[string]*model.IntimacyBase, error)
- func (w *DB) MonthlyTrend(months int) ([]model.MonthlyTrend, error)
- func (w *DB) SearchMessages(req *model.SearchRequest) (*model.SearchResponse, error)
- func (w *DB) SetCallback(group string, callback func(event fsnotify.Event) error) error
- type GetChatRoomsResp
- type GetContactsResp
- type GetSessionsResp
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 (*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) GetMessages ¶
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 (*DB) GroupTodayMessageCounts ¶
func (*DB) GroupWeekMessageCount ¶
func (*DB) Initialize ¶
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)
type GetChatRoomsResp ¶
type GetContactsResp ¶
type GetSessionsResp ¶
Click to show internal directories.
Click to hide internal directories.