Documentation
¶
Index ¶
- func MaxTime(a, b time.Time) time.Time
- type FileSyncStore
- func (s *FileSyncStore) LoadFilterID(_ context.Context, _ id.UserID) (string, error)
- func (s *FileSyncStore) LoadNextBatch(_ context.Context, _ id.UserID) (string, error)
- func (s *FileSyncStore) SaveFilterID(_ context.Context, _ id.UserID, filterID string) error
- func (s *FileSyncStore) SaveNextBatch(_ context.Context, _ id.UserID, nextBatch string) error
- type JoinStore
- type PrevBatchStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSyncStore ¶
type FileSyncStore struct {
// contains filtered or unexported fields
}
FileSyncStore stores sync token and filter ID on disk.
func NewFileSyncStore ¶
func NewFileSyncStore(path string) (*FileSyncStore, error)
func (*FileSyncStore) LoadFilterID ¶
func (*FileSyncStore) LoadNextBatch ¶
func (*FileSyncStore) SaveFilterID ¶
func (*FileSyncStore) SaveNextBatch ¶
type JoinStore ¶
type JoinStore struct {
// room_id -> join_ts_millis
JoinTS map[id.RoomID]int64 `json:"join_ts"`
// contains filtered or unexported fields
}
func NewJoinStore ¶
func (*JoinStore) SetIfEarlier ¶
type PrevBatchStore ¶
type PrevBatchStore struct {
// contains filtered or unexported fields
}
func NewPrevBatchStore ¶
func NewPrevBatchStore() *PrevBatchStore
Click to show internal directories.
Click to hide internal directories.