parameter

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 77

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefault

func GetDefault(values url.Values, key, def string) string

Types

type Parameters

type Parameters struct {
	Page      string
	PageSize  string
	SortField string
	Columns   []string
	SortType  string
	Fields    map[string]string
}

func GetParam

func GetParam(values url.Values, defaultPageSize int, primaryKey, defaultSort string) Parameters

func GetParamFromUrl

func GetParamFromUrl(value string, fromList bool, defaultPageSize int, primaryKey, defaultSort string) Parameters

func (Parameters) GetFieldOperator added in v1.1.2

func (param Parameters) GetFieldOperator(field string) types.FilterOperator

func (Parameters) GetFieldValue added in v1.1.2

func (param Parameters) GetFieldValue(field string) string

func (Parameters) GetFixedParamStr

func (param Parameters) GetFixedParamStr() string

func (Parameters) GetFixedParamStrWithoutPageSize

func (param Parameters) GetFixedParamStrWithoutPageSize() string

func (Parameters) GetLastPageRouteParamStr

func (param Parameters) GetLastPageRouteParamStr() string

func (Parameters) GetNextPageRouteParamStr

func (param Parameters) GetNextPageRouteParamStr() string

func (Parameters) GetRouteParamStr

func (param Parameters) GetRouteParamStr() string

func (Parameters) GetRouteParamStrWithoutId

func (param Parameters) GetRouteParamStrWithoutId() string

func (Parameters) GetRouteParamStrWithoutPageSize

func (param Parameters) GetRouteParamStrWithoutPageSize() string

func (Parameters) SetPage

func (param Parameters) SetPage(page string) Parameters

Jump to

Keyboard shortcuts

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