Documentation
¶
Index ¶
- type Engine
- type Getter
- type Options
- type Pagination
- func (x *Pagination[T]) GetCurrentPage() uint64
- func (x *Pagination[T]) GetData() []T
- func (x *Pagination[T]) GetFrom() uint64
- func (x *Pagination[T]) GetLastPage() uint64
- func (x *Pagination[T]) GetPerPage() int
- func (x *Pagination[T]) GetTo() uint64
- func (x *Pagination[T]) GetTotal() uint64
- func (x *Pagination[T]) SetCurrentPage(page uint64)
- func (x *Pagination[T]) SetData(data []T)
- func (x *Pagination[T]) SetFrom(page uint64)
- func (x *Pagination[T]) SetLastPage(page uint64)
- func (x *Pagination[T]) SetPerPage(page int)
- func (x *Pagination[T]) SetTo(page uint64)
- func (x *Pagination[T]) SetTotal(page uint64)
- type Setter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination[T any] struct { CurrentPage uint64 `json:"current_page"` From uint64 `json:"from"` LastPage uint64 `json:"last_page"` PerPage int `json:"per_page"` To uint64 `json:"to"` Total uint64 `json:"total"` Data []T `json:"data"` }
func (*Pagination[T]) GetCurrentPage ¶
func (x *Pagination[T]) GetCurrentPage() uint64
func (*Pagination[T]) GetData ¶
func (x *Pagination[T]) GetData() []T
func (*Pagination[T]) GetFrom ¶
func (x *Pagination[T]) GetFrom() uint64
func (*Pagination[T]) GetLastPage ¶
func (x *Pagination[T]) GetLastPage() uint64
func (*Pagination[T]) GetPerPage ¶
func (x *Pagination[T]) GetPerPage() int
func (*Pagination[T]) GetTo ¶
func (x *Pagination[T]) GetTo() uint64
func (*Pagination[T]) GetTotal ¶
func (x *Pagination[T]) GetTotal() uint64
func (*Pagination[T]) SetCurrentPage ¶
func (x *Pagination[T]) SetCurrentPage(page uint64)
func (*Pagination[T]) SetData ¶
func (x *Pagination[T]) SetData(data []T)
func (*Pagination[T]) SetFrom ¶
func (x *Pagination[T]) SetFrom(page uint64)
func (*Pagination[T]) SetLastPage ¶
func (x *Pagination[T]) SetLastPage(page uint64)
func (*Pagination[T]) SetPerPage ¶
func (x *Pagination[T]) SetPerPage(page int)
func (*Pagination[T]) SetTo ¶
func (x *Pagination[T]) SetTo(page uint64)
func (*Pagination[T]) SetTotal ¶
func (x *Pagination[T]) SetTotal(page uint64)
Click to show internal directories.
Click to hide internal directories.