params

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 5 Imported by: 30

Documentation

Index

Constants

View Source
const (
	PagingParam     = "paging"
	OrderByParam    = "orderBy"
	ConditionsParam = "conditions"
	ReverseParam    = "reverse"
)

Variables

This section is empty.

Functions

func GetBoolValueWithDefault

func GetBoolValueWithDefault(req *restful.Request, name string, dv bool) bool

func GetStringValueWithDefault

func GetStringValueWithDefault(req *restful.Request, name string, dv string) string

func ParsePaging

func ParsePaging(req *restful.Request) (limit, offset int)

Types

type Conditions

type Conditions struct {
	Match map[string]string
	Fuzzy map[string]string
}

func ParseConditions

func ParseConditions(req *restful.Request) (*Conditions, error)

Jump to

Keyboard shortcuts

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