query

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: AGPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateOffset

func CalculateOffset(page, limit int) int

CalculateOffset figures out the offset on for the query based on which page is requested

Types

type Direction

type Direction string

Direction defines the available constants for directional ordering

const (
	DirectionASC  Direction = "ASC"
	DirectionDESC Direction = "DESC"
)

type Order

type Order struct {
	Direction Direction
	Field     string
}

Order details for a query

type Query

type Query string

func (Query) String

func (q Query) String() string

Jump to

Keyboard shortcuts

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