Documentation
¶
Overview ¶
Package database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pagination ¶
type Pagination[T any] struct { Limit int `json:"limit,omitempty"` Page int `json:"page,omitempty"` Total int64 `json:"total_rows"` TotalPages int `json:"total_pages"` Data []T `json:"data"` }
func (*Pagination[T]) GetLimit ¶
func (p *Pagination[T]) GetLimit() int
func (*Pagination[T]) GetOffset ¶
func (p *Pagination[T]) GetOffset() int
func (*Pagination[T]) GetPage ¶
func (p *Pagination[T]) GetPage() int
Click to show internal directories.
Click to hide internal directories.