Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLimit = 10 DefaultOffset = 0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pagination ¶
type Pagination struct { Limit int `json:"limit,omitempty;query:limit"` Page int `json:"page,omitempty;query:page"` TotalRows int64 `json:"total_rows"` TotalPages int `json:"total_pages"` Rows any `json:"rows"` }
func (*Pagination) GetLimit ¶
func (p *Pagination) GetLimit() int
func (*Pagination) GetOffset ¶
func (p *Pagination) GetOffset() int
func (*Pagination) GetPage ¶
func (p *Pagination) GetPage() int
Click to show internal directories.
Click to hide internal directories.