Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePaginateable ¶
BasePaginateable provides common functionalities around paginateable objects
func (*BasePaginateable) GetCursor ¶
func (paginateable *BasePaginateable) GetCursor() (cursor *Cursor, err error)
GetCursor returns the cursor value for this producer
func (*BasePaginateable) GetLastUpdatedHTTPTimeString ¶
func (paginateable *BasePaginateable) GetLastUpdatedHTTPTimeString() string
GetLastUpdatedHTTPTimeString exposes the string rep of the last modified timestamp for the object
func (*BasePaginateable) QuickFix ¶
func (paginateable *BasePaginateable) QuickFix() bool
QuickFix fixes base paginate-able model's attribute
type Cursor ¶
Cursor represents a string used for pagination
func ParseCursor ¶
ParseCursor creates Cursor from its string representation
type Paginateable ¶
Paginateable should be implemented by objects having xid.ID as field ID in DB and helps get cursor object
type Pagination ¶
Pagination represents a data structure to determine how to traverse a list
func NewPagination ¶
func NewPagination(after Paginateable, before Paginateable) *Pagination
NewPagination returns a new pagination wrapper
type ValidateableModel ¶
ValidateableModel model supporting this can be checked for valid state before write ops. Also allows for quick fix to be applied