☰
Index
Modules:
bag
.
API symbols
addRule:
bag: proc addRule(bag: InputBag; rule: Rule)
getErrors:
bag: proc getErrors(bag: InputBag): seq[(string, string)]
InputBag:
bag: type InputBag
InputBagType:
bag: enum InputBagType
inputTypeMultipart:
bag: InputBagType.inputTypeMultipart
inputTypeUrlEncoded:
bag: InputBagType.inputTypeUrlEncoded
isInvalid:
bag: proc isInvalid(bag: InputBag): bool
isValid:
bag: proc isValid(bag: InputBag): bool
MinMax:
bag: type MinMax
multipartBag:
bag: macro multipartBag(data, contentType: typed; rules: untyped; bodySuccess, bodyFail: untyped = nil)
multipartStreamedBag:
bag: macro multipartStreamedBag(feeder, contentType: typed; rules: untyped; bodyFail: untyped = nil)
newInputBag:
bag: proc newInputBag(bagType: InputBagType): InputBag
Rule:
bag: object Rule
Rules:
bag: type Rules
tAlpha:
bag: TField.tAlpha
tAlphanumeric:
bag: TField.tAlphanumeric
tBase32:
bag: TField.tBase32
tBase58:
bag: TField.tBase58
tBase64:
bag: TField.tBase64
tBool:
bag: TField.tBool
tCard:
bag: TField.tCard
tCheckbox:
bag: TField.tCheckbox
tColor:
bag: TField.tColor
tCountry:
bag: TField.tCountry
tCountryCapital:
bag: TField.tCountryCapital
tCountryState:
bag: TField.tCountryState
tCSRF:
bag: TField.tCSRF
tCurrency:
bag: TField.tCurrency
tDatalist:
bag: TField.tDatalist
tDate:
bag: TField.tDate
tDomain:
bag: TField.tDomain
tEAN:
bag: TField.tEAN
tEmail:
bag: TField.tEmail
TField:
bag: enum TField
tFile:
bag: TField.tFile
tFloat:
bag: TField.tFloat
tHex:
bag: TField.tHex
tHidden:
bag: TField.tHidden
tIP:
bag: TField.tIP
tJSON:
bag: TField.tJSON
tLowercase:
bag: TField.tLowercase
tMD5:
bag: TField.tMD5
tMonth:
bag: TField.tMonth
tNone:
bag: TField.tNone
tNumber:
bag: TField.tNumber
tPassword:
bag: TField.tPassword
tPasswordStrength:
bag: TField.tPasswordStrength
tPort:
bag: TField.tPort
tRadio:
bag: TField.tRadio
tRange:
bag: TField.tRange
tRegex:
bag: TField.tRegex
tSearch:
bag: TField.tSearch
tSelect:
bag: TField.tSelect
tTel:
bag: TField.tTel
tText:
bag: TField.tText
tTextarea:
bag: TField.tTextarea
tTime:
bag: TField.tTime
tUppercase:
bag: TField.tUppercase
tUrl:
bag: TField.tUrl
tUUID:
bag: TField.tUUID
tWeek:
bag: TField.tWeek
validate:
bag: proc validate(bag: InputBag; jsonData: JsonNode)
bag: proc validate(bag: InputBag; data: openArray[(string, string)])
validateMultipart:
bag: proc validateMultipart(bag: InputBag; contentType, multipartBody: sink string)
bag: proc validateMultipart(bag: InputBag; contentType: string; data: ptr UncheckedArray[byte]; dataLen: int)
bag: proc validateMultipart(bag: InputBag; contentType: string; multipartBody: sink seq[byte])
validateMultipartStreamed:
bag: proc validateMultipartStreamed(bag: InputBag; contentType: string; feeder: proc ( ms: var MultipartStreamer): bool {.closure.})
withBag:
bag: macro withBag(data: typed; rules: untyped; bodyFail: untyped = nil)
withValidator:
bag: template withValidator(x: typed; r: untyped; b: untyped = nil)