Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2018 Changes in this version + type IndexPager struct + func FromIndexer(indexer PageableIndexer, indexName, indexKey string) *IndexPager + func (p *IndexPager) Limit(params PagingParams) ([]interface{}, error) + type PageableIndexer interface + ByIndex func(indexName, indexKey string) ([]interface{}, error) + GetByKey func(key string) (item interface{}, exists bool, err error) + IndexKeys func(indexName, indexKey string) ([]string, error) + type PageableStore interface + GetByKey func(key string) (item interface{}, exists bool, err error) + List func() []interface{} + ListKeys func() []string + type Pager struct + func From(store PageableStore) *Pager + func (p *Pager) Limit(params PagingParams) ([]interface{}, error) + type PagingParams struct + First *int + Offset *int