Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultLimit define the default number of records to be retrieved. DefaultLimit = 15 ASC = "ASC" DESC = "DESC" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListOptions ¶ added in v0.3.2
type ListOptions struct { // Page Page int `form:"page"` // Offset Offset int `form:"offset"` // Limit Limit int `form:"limit"` // Order asc or desc. Order string `form:"order"` // Sort field. Sort string `form:"sort"` }
ListOptions contains offset and limit fields.
func (*ListOptions) SetDefaultOptions ¶ added in v0.3.2
func (req *ListOptions) SetDefaultOptions()
SetDefaultOptions Set default options if not exist.
Click to show internal directories.
Click to hide internal directories.