query

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInt64GreaterEqual0 added in v1.1.0

func CheckInt64GreaterEqual0(v int64) bool

func CheckInt64IsPositive

func CheckInt64IsPositive(v int64) bool

func CheckIntGreaterEqual0 added in v1.1.0

func CheckIntGreaterEqual0(v int) bool

func CheckIntIsPositive

func CheckIntIsPositive(v int) bool

func CheckStringNotEmpty

func CheckStringNotEmpty(v string) bool

func NewInt64Value

func NewInt64Value(int64Ptr *int64, required bool, errno string, msg string, checkFunc CheckInt64) *int64Value

func NewIntValue

func NewIntValue(intPtr *int, required bool, errno string, msg string, checkFunc CheckInt) *intValue

func NewStringValue

func NewStringValue(strPtr *string, required bool, errno string, msg string, checkFunc CheckString) *stringValue

Types

type CheckInt

type CheckInt func(v int) bool

type CheckInt64

type CheckInt64 func(v int64) bool

type CheckString

type CheckString func(v string) bool

type QuerySet

type QuerySet struct {
	// contains filtered or unexported fields
}

func NewQuerySet

func NewQuerySet() *QuerySet

func (*QuerySet) Exist

func (qs *QuerySet) Exist(name string) bool

func (*QuerySet) ExistsInfo

func (qs *QuerySet) ExistsInfo() map[string]bool

func (*QuerySet) Int64Var

func (qs *QuerySet) Int64Var(int64Ptr *int64, name string, required bool, errno string, msg string, checkFunc CheckInt64) *QuerySet

func (*QuerySet) IntVar

func (qs *QuerySet) IntVar(intPtr *int, name string, required bool, errno string, msg string, checkFunc CheckInt) *QuerySet

func (*QuerySet) Parse

func (qs *QuerySet) Parse(actual url.Values) *goerror.Error

func (*QuerySet) StringVar

func (qs *QuerySet) StringVar(strPtr *string, name string, required bool, errno string, msg string, checkFunc CheckString) *QuerySet

func (*QuerySet) Var

func (qs *QuerySet) Var(name string, v Value) *QuerySet

type Value

type Value interface {
	Required() bool
	Set(str string) error
	Check() bool
	Error() *goerror.Error
}

Jump to

Keyboard shortcuts

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