Versions in this module Expand all Collapse all v0 v0.0.1 Oct 27, 2024 Changes in this version + type AfterIDIter struct + func (iter AfterIDIter) Result() AfterIDResult + type AfterIDResult struct + Addr jid.JID + Delay time.Time + ID string + type DB struct + func OpenDB(ctx context.Context, appName, account, dbFile, schema string, ...) (*DB, error) + func (db *DB) AfterID(ctx context.Context) AfterIDIter + func (db *DB) BeforeID(ctx context.Context, j jid.JID) (string, time.Time, error) + func (db *DB) ForRoster(ctx context.Context, f func(event.UpdateRoster)) error + func (db *DB) GetInfo(ctx context.Context, j jid.JID) (disco.Info, disco.Caps, error) + func (db *DB) GetServices(ctx context.Context, feature info.Feature) ([]jid.JID, error) + func (db *DB) InsertCaps(ctx context.Context, j jid.JID, caps disco.Caps) error + func (db *DB) InsertMsg(ctx context.Context, respectDelay bool, msg event.ChatMessage, addr jid.JID) error + func (db *DB) MarkReceived(ctx context.Context, e event.Receipt) error + func (db *DB) QueryHistory(ctx context.Context, j string, typ stanza.MessageType) MessageIter + func (db *DB) ReplaceRoster(ctx context.Context, e event.FetchRoster) error + func (db *DB) RosterVer(ctx context.Context) (string, error) + func (db *DB) UpdateRoster(ctx context.Context, ver string, item event.UpdateRoster) error + func (db *DB) UpsertDisco(ctx context.Context, j jid.JID, caps disco.Caps, info disco.Info) error + type Iter struct + func (i *Iter) Close() error + func (i *Iter) Current() interface{} + func (i *Iter) Err() error + func (i *Iter) Next() bool + type MessageIter struct + func (iter MessageIter) Message() event.ChatMessage