querytypes

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListReq

type ListReq[T Ordered] struct {
	request.PageSortReq
	*request.RangeReq[T]
}

func NewListReq

func NewListReq[T Ordered](pageNo, pageSize int) *ListReq[T]

func (*ListReq[T]) WithRange

func (req *ListReq[T]) WithRange(field string, start, end T, include bool) *ListReq[T]

func (*ListReq[T]) WithSort

func (req *ListReq[T]) WithSort(field string, typ request.SortType) *ListReq[T]

type Ordered

type Ordered interface {
	constraints.Ordered | time.Time
}

Jump to

Keyboard shortcuts

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