Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 []chat1.Conversation, 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
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 covenient interface to pager for the thread use case
func NewThreadPager ¶
func NewThreadPager() ThreadPager
func (ThreadPager) MakePage ¶
func (p ThreadPager) MakePage(res []Message, reqed int) (*chat1.Pagination, error)
Click to show internal directories.
Click to hide internal directories.