database

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Paginator added in v0.0.24

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

func NewPaginator added in v0.0.24

func NewPaginator(sortDefault string, allowedSortFields map[string]string) Paginator

func (Paginator) Limit added in v0.0.24

func (p Paginator) Limit(size, maxSize int) int

func (Paginator) Offset added in v0.0.24

func (p Paginator) Offset(page, limit int) int

func (Paginator) OrderBy added in v0.0.24

func (p Paginator) OrderBy(sortFields []string) string

func (Paginator) Page added in v0.0.24

func (p Paginator) Page(page int) int

Jump to

Keyboard shortcuts

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