query

package
v0.0.0-...-faa3d42 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForTenant

func ForTenant(u *easypay.AuthUser, tenantID int32) string

ForTenant returns query for filtering rows by tenant_id

func Paginate

func Paginate(limit, page int32) (int, int)

Paginate returns pagination details with default query limit

Types

type Pagination

type Pagination struct {
	Limit  int32
	Offset int32
}

Pagination holds paginations data

Jump to

Keyboard shortcuts

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