pager

package
Version: v15.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 9 Imported by: 0

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

Source Files

Jump to

Keyboard shortcuts

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