Help us shape the future of Go! Take the 2026 Go Developer Survey

tools

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLimit = 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Filter(q *orm.Query) (*orm.Query, error)
}

type HttpClient

type HttpClient struct {
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(host string) *HttpClient

func (*HttpClient) Get

func (c *HttpClient) Get(url string, response interface{}) error

type Pagination

type Pagination struct {
	Pager      *urlvalues.Pager
	Request    *http.Request
	RequestURL string
	Total      int
}

func NewPagination

func NewPagination(request *http.Request) Pagination

func (Pagination) Filter

func (pagination Pagination) Filter(query *orm.Query) (*orm.Query, error)

func (Pagination) GetCurrentPage

func (pagination Pagination) GetCurrentPage() int
func (pagination Pagination) GetFirstPageLink() *string

func (Pagination) GetLastPage

func (pagination Pagination) GetLastPage() int
func (pagination Pagination) GetLastPageLink() *string
func (pagination Pagination) GetNextPageLink() *string

func (Pagination) GetPath

func (pagination Pagination) GetPath() string

func (Pagination) GetPerPage

func (pagination Pagination) GetPerPage() int
func (pagination Pagination) GetPrevPageLink() *string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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