filter

package module
v0.0.0-...-fcc2efa Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

filter

filter params for request

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterTypeString

func FilterTypeString() filterType

func FilterTypeUint

func FilterTypeUint() filterType

func GetInt

func GetInt(rules []filterRule, key string) int

func GetString

func GetString(rules []filterRule, key string, escape bool) string

func RuleString

func RuleString(name, value string, required bool, df string) filterRule

func RuleUint

func RuleUint(name, value string, required bool, df int) filterRule

func Valid

func Valid(rules ...filterRule) ([]filterRule, bool)

func ValidToken

func ValidToken(r []filterRule, KEY, token string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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