Documentation ¶
Overview ¶
Package ormlist defines options for listing items from ORM indexes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option = listinternal.Option
Option represents a list option.
func Cursor ¶
Cursor specifies a cursor after which to restart iteration. Cursor values are returned by iterators and in pagination results.
func Filter ¶
Filter returns an option which applies a filter function to each item and skips over it when the filter function returns false.
func Paginate ¶
func Paginate(pageRequest *queryv1beta1.PageRequest) Option
Paginate paginates iterator output based on the provided page request. The Iterator.PageRequest value on the returned iterator will be non-nil after Iterator.Next() returns false when this option is provided. Care should be taken when using Paginate together with Reverse and/or Cursor and generally this should be avoided.