Documentation ¶
Index ¶
- Constants
- Variables
- type Cursor
- func (c Cursor) Expires() time.Time
- func (c *Cursor) GobDecode(data []byte) error
- func (c Cursor) GobEncode() ([]byte, error)
- func (c Cursor) HasExpired() (bool, error)
- func (c Cursor) IsZero() bool
- func (c Cursor) MarshalText() ([]byte, error)
- func (c Cursor) PageToken() (_ string, err error)
- func (c Cursor) PrevPage() *Cursor
- func (c *Cursor) UnmarshalText(data []byte) (err error)
Constants ¶
View Source
const ( DefaultPageSize uint32 = 20 MaximumPageSize uint32 = 1000 CursorDuration = 12 * time.Hour )
Variables ¶
View Source
var ( ErrMissingExpiration = errors.New("cursor does not have an expires timestamp") ErrCursorExpired = errors.New("cursor has expired and is no longer useable") ErrUnparsableToken = errors.New("could not parse the next page token") ErrTokenQueryMismatch = errors.New("cannot change query parameters during pagination") ErrPageSizeTooLarge = errors.New("page size is greater than the maximum allowed page size") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.