Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboxEntry ¶ added in v1.0.19
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 ¶ added in v1.0.19
func (i InboxPagerFields) GetConvID() chat1.ConversationID
func (InboxPagerFields) GetMtime ¶ added in v1.0.19
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 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.