Documentation ¶
Index ¶
Constants ¶
View Source
const ( User obj = iota Shop Product Review Order )
Object types
Variables ¶
This section is empty.
Functions ¶
func EncodeCursor ¶
EncodeCursor encodes time and id with base64.
Types ¶
type Cursor ¶
type Cursor struct { // Used defines if the client used a cursor or not Used bool CreatedAt time.Time ID string }
Cursor contains the values used for pagination.
func DecodeCursor ¶
DecodeCursor decodes de cursor and returns both it and time
type Query ¶
Query contains the request parameters provided by the client.
TODO: include order field to let clients change the objects' order (DESC/ASC)
func ParseQuery ¶
ParseQuery returns the url params received after validating them.
Click to show internal directories.
Click to hide internal directories.