filters

package
v0.0.0-...-d808fcf Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID struct {
	Val string
}

ID handles id filter

func (*ID) Parse

func (id *ID) Parse(r *http.Request) error

Parse parse id from get params

type Limit

type Limit struct {
	Val int
}

Limit handles limit filter

func (*Limit) Parse

func (l *Limit) Parse(r *http.Request) error

Parse parse skip from get params

type List

type List struct {
	Skip   Skip
	Limit  Limit
	Sort   Sort
	Search Search
}

List handles list filter

func (*List) Parse

func (l *List) Parse(r *http.Request) error

Parse parse list params from get params

type Search struct {
	Val string
}

Search handles search filter

func (*Search) Parse

func (s *Search) Parse(r *http.Request) error

Parse parse search from get params

type Skip

type Skip struct {
	Val int
}

Skip handles skip filter

func (*Skip) Parse

func (s *Skip) Parse(r *http.Request) error

Parse parse skip from get params

type Sort

type Sort struct {
	Field string
	Dir   string
}

Sort handles sort filter

func (*Sort) Parse

func (s *Sort) Parse(r *http.Request) error

Parse parse sort from get params

Jump to

Keyboard shortcuts

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