Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
IdCursorType = (*IdCursor)(nil)
)
Functions ¶
This section is empty.
Types ¶
type MongoCursor ¶
type MongoPaginator ¶
type MongoPaginator struct {
// contains filtered or unexported fields
}
func NewMongoPaginator ¶
func NewMongoPaginator(store pagination.Store, opts *pagination.PaginationOptions) *MongoPaginator
func (*MongoPaginator) MakeSortOptions ¶
MakeSortOptions 生成ID分页查询选项,并将filter在原地更新
func (*MongoPaginator) StoreCursor ¶
func (p *MongoPaginator) StoreCursor(ctx context.Context, first, last any) error
Click to show internal directories.
Click to hide internal directories.