Documentation ¶
Index ¶
- type IPager
- type Pager
- func (p *Pager) GetCurPage() int
- func (p *Pager) GetLink(pageNum int, pageSize int) string
- func (p *Pager) GetLinkFirst() string
- func (p *Pager) GetLinkLast() string
- func (p *Pager) GetLinkNext() string
- func (p *Pager) GetLinkPrev() string
- func (p *Pager) GetOffset() int
- func (p *Pager) GetPageSize() int
- func (p *Pager) GetPages() []int
- func (p *Pager) GetPagesCnt() int
- func (p *Pager) GetTotal() uint64
- func (p *Pager) HasNext() bool
- func (p *Pager) HasPages() bool
- func (p *Pager) HasPrev() bool
- func (p *Pager) IsCurPage(val int) bool
- func (p *Pager) ReadCurPage(key ...string) IPager
- func (p *Pager) ReadPageSize(key ...string) IPager
- func (p *Pager) SetCurPage(val int, key ...string) IPager
- func (p *Pager) SetPageSize(val int, key ...string) IPager
- func (p *Pager) SetTotal(val interface{}) IPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPager ¶
type IPager interface { SetCurPage(val int, key ...string) IPager ReadCurPage(key ...string) IPager GetCurPage() int IsCurPage(val int) bool ReadPageSize(key ...string) IPager SetPageSize(val int, key ...string) IPager GetPageSize() int GetOffset() int SetTotal(val interface{}) IPager GetTotal() uint64 GetPagesCnt() int HasPages() bool HasPrev() bool HasNext() bool GetPages() []int GetLink(pageNum, pageSize int) string GetLinkPrev() string GetLinkNext() string GetLinkFirst() string GetLinkLast() string }
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
func (*Pager) GetCurPage ¶
func (*Pager) GetLinkFirst ¶
func (*Pager) GetLinkLast ¶
func (*Pager) GetLinkNext ¶
func (*Pager) GetLinkPrev ¶
func (*Pager) GetPageSize ¶
func (*Pager) GetPagesCnt ¶
func (*Pager) ReadCurPage ¶
func (*Pager) ReadPageSize ¶
Click to show internal directories.
Click to hide internal directories.