Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedPlatform = fmt.Errorf("unsupported platform")
)
错误定义
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource interface {
// 消息
GetMessages(ctx context.Context, startTime, endTime time.Time, talker string, limit, offset int) ([]*model.Message, error)
// 联系人
GetContacts(ctx context.Context, key string, limit, offset int) ([]*model.Contact, error)
// 群聊
GetChatRooms(ctx context.Context, key string, limit, offset int) ([]*model.ChatRoom, error)
// 最近会话
GetSessions(ctx context.Context, key string, limit, offset int) ([]*model.Session, error)
Close() error
}
func NewDataSource ¶
func NewDataSource(path string, platform string, version int) (DataSource, error)
Click to show internal directories.
Click to hide internal directories.