Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDExtractor ¶
type IDExtractor func(element interface{}) interface{}
IDExtractor extracts an ID from an untyped parameter. It's expected that IDExtractors will downcast element to the expected type and panic if the downcast fails.
type Pageable ¶
type Pageable interface {
// ExtractID derives an identifier that is guaranteed to be unique relative
// to any elements with which it may coexist in a given collection
ExtractID() string
}
Pageable is an type that can be paginated when present in a collection.
func GetPageAfterID ¶
GetPageAfterID paginates elements. The first element of the returned page directly follows the element in elements having an ID equivalent to after. At most pageSize results are included in the returned page.
Click to show internal directories.
Click to hide internal directories.