pager

package
v15.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ordering

func Ordering(defaultOrder string, reverse bool) string

Types

type CursorInfo

type CursorInfo struct {
	Offset int64 `json:"offset"`
}

func (*CursorInfo) Decode

func (info *CursorInfo) Decode(c butlerd.Cursor)

func (*CursorInfo) Encode

func (info *CursorInfo) Encode() butlerd.Cursor

type PagedRequest

type PagedRequest interface {
	GetLimit() int64
	GetCursor() butlerd.Cursor
}

type Pager

type Pager interface {
	Fetch(conn *sqlite.Conn, result interface{}, cond builder.Cond, search hades.Search) butlerd.Cursor
}

func New

func New(req PagedRequest) Pager

Jump to

Keyboard shortcuts

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