pagination

package
v0.3.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Cx         sql.ConnX
	Attributes string
	From       string
	Join       string
	Where      string
	Order      string
	Page       int
	PageSize   int
}

func (*Page) Limit

func (p *Page) Limit() int

func (*Page) NamedSelect added in v0.1.10

func (p *Page) NamedSelect(items interface{}, arg interface{}) (*service.ContentResponse, error)

func (*Page) Offset

func (p *Page) Offset() int

func (*Page) Select

func (p *Page) Select(items interface{}, params ...interface{}) (*service.ContentResponse, error)

func (*Page) SetupTest added in v0.3.22

func (p *Page) SetupTest(
	response interface{},
	responseHandler func(interface{}, string, ...interface{}) error,
	params ...interface{},
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL