Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct { Offset int Limit int ActualPage int TotalPages int TotalElements int LinkSelf string LinkFirst string LinkPrev string LinkNext string LinkLast string Request url.URL }
func CreatePagination ¶
func CreatePagination(reqUrl url.URL) *Pagination
func (*Pagination) GetLinks ¶
func (pag *Pagination) GetLinks() string
func (*Pagination) SetHeaders ¶
func (pag *Pagination) SetHeaders(w http.ResponseWriter)
func (*Pagination) SetTotalElements ¶
func (pag *Pagination) SetTotalElements(rows int) error
Click to show internal directories.
Click to hide internal directories.