Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboxEntry ¶
type InboxEntry interface { GetMtime() gregor1.Time GetConvID() chat1.ConversationID }
type InboxPager ¶
type InboxPager struct {
Pager
}
inboxPager provides a convenient interface to pager for the inbox use case
func NewInboxPager ¶
func NewInboxPager() InboxPager
func (InboxPager) MakePage ¶
func (p InboxPager) MakePage(res []InboxEntry, reqed int) (*chat1.Pagination, error)
type InboxPagerFields ¶
type InboxPagerFields struct { Mtime gregor1.Time `codec:"M"` ConvID chat1.ConversationID `codec:"C"` }
inboxPagerFields is the info that gives a total ordering on the inbox
func (InboxPagerFields) GetConvID ¶
func (i InboxPagerFields) GetConvID() chat1.ConversationID
func (InboxPagerFields) GetMtime ¶
func (i InboxPagerFields) GetMtime() gregor1.Time
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
pager provides the getPage and makePage functions for implementing paging in the chat1 protocol
type ThreadPager ¶
type ThreadPager struct {
Pager
}
threadPager provides a convenient interface to pager for the thread use case
func NewThreadPager ¶
func NewThreadPager() ThreadPager
func (ThreadPager) MakeIndexByID ¶
func (p ThreadPager) MakeIndexByID(msgID chat1.MessageID) ([]byte, error)
func (ThreadPager) MakePage ¶
func (p ThreadPager) MakePage(res []Message, reqed int, maxDeletedUpto chat1.MessageID) (*chat1.Pagination, error)
Click to show internal directories.
Click to hide internal directories.