utils

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

cSpell:ignore gonic, orgs, paulo, ferreira

cSpell:ignore gonic, orgs, paulo, ferreira

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEmail

func IsValidEmail(v string) bool

func IsValidGUID

func IsValidGUID(v string) bool

func IsValidHexID

func IsValidHexID(v string) bool

func IsValidID

func IsValidID(v string) bool

func IsValidOrgAlias

func IsValidOrgAlias(v string) bool

func IsValidOrgReference

func IsValidOrgReference(id string) bool

func IsValidPasswordHash

func IsValidPasswordHash(p string) bool

func IsValidRolesCSV

func IsValidRolesCSV(v string) bool

func IsValidStoreAlias

func IsValidStoreAlias(v string) bool

func IsValidStoreID

func IsValidStoreID(id string) bool

func IsValidTemplateName

func IsValidTemplateName(v string) bool

func IsValidUID

func IsValidUID(p string) bool

func IsValidUserID

func IsValidUserID(id string) bool

func IsValidUserName

func IsValidUserName(v string) bool

func RPFReadyVFields

func RPFReadyVFields(r rpf.GINProcessor, c *gin.Context)

SINGLE/MULTI FIELD VALIDATION RPF HANDLERS //

func RPFTestVFields

func RPFTestVFields(code int, r rpf.GINProcessor, c *gin.Context)

func ValidateEmailFormat

func ValidateEmailFormat(value string) (string, string)

func ValidateFormParameter

func ValidateFormParameter(c *gin.Context, name string, required bool, trim bool, allowEmpty bool) (string, string)

Basic GIN Form Parameter Validator

func ValidateGUIDFormat

func ValidateGUIDFormat(value string) (string, string)

func ValidateGinParameter

func ValidateGinParameter(c *gin.Context, name string, required bool, trim bool, allowEmpty bool) (string, string)

Basic GIN Request Parameter Validator

func ValidateHash

func ValidateHash(value string) (string, string)

func ValidateIntParameter

func ValidateIntParameter(name string, value string, allowEmpty bool) (*int64, string)

Basic Integer Parameter Validator

func ValidateObjectID

func ValidateObjectID(name string, value string) (*uint64, string)

func ValidateOrgReference

func ValidateOrgReference(value string) (interface{}, string)

Value Contains a Value that can pass as a Organization Reference

func ValidateStoreID

func ValidateStoreID(value string) (string, string)

func ValidateStoreReference

func ValidateStoreReference(value string) (interface{}, string)

func ValidateStringParameter

func ValidateStringParameter(name string, value string, trim bool, allowEmpty bool) (string, string)

Basic String Parameter Validator

func ValidateTemplateName

func ValidateTemplateName(value string) (interface{}, string)

Value Contains a Value that can pass as a Template Name

func ValidateURLParameter

func ValidateURLParameter(c *gin.Context, name string, required bool, trim bool, allowEmpty bool) (string, string)

Basic GIN URL Parameter Validator

func ValidateUintParameter

func ValidateUintParameter(name string, value string, allowEmpty bool) (*uint64, string)

func ValidateUserReference

func ValidateUserReference(value string) (interface{}, string)

Value Contains a Value that can pass as a User Reference

Types

This section is empty.

Jump to

Keyboard shortcuts

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