query

package
v5.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInt64IsPositive

func CheckInt64IsPositive(v int64) bool

func CheckIntIsPositive

func CheckIntIsPositive(v int) bool

func CheckStringNotEmpty

func CheckStringNotEmpty(v string) bool

func NewInt64Value

func NewInt64Value(p *int64, required bool, errno int, msg string, cf CheckInt64) *int64Value

func NewIntValue

func NewIntValue(p *int, required bool, errno int, msg string, cf CheckInt) *intValue

func NewStringValue

func NewStringValue(p *string, required bool, errno int, msg string, cf 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 (this *QuerySet) Exist(name string) bool

func (*QuerySet) ExistsInfo

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

func (*QuerySet) Int64Var

func (this *QuerySet) Int64Var(p *int64, name string, required bool, errno int, msg string, cf CheckInt64) *QuerySet

func (*QuerySet) IntVar

func (this *QuerySet) IntVar(p *int, name string, required bool, errno int, msg string, cf CheckInt) *QuerySet

func (*QuerySet) Parse

func (this *QuerySet) Parse(actual url.Values) *exception.Exception

func (*QuerySet) StringVar

func (this *QuerySet) StringVar(p *string, name string, required bool, errno int, msg string, cf CheckString) *QuerySet

func (*QuerySet) Var

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

type Value

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

Jump to

Keyboard shortcuts

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