validators

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetErrors

func GetErrors(err error) validator.ValidationErrors

func IsInSlice added in v1.8.0

func IsInSlice(str string, target []string) bool

func IsSubSlice added in v1.8.0

func IsSubSlice(source []string, target []string) bool

func ValidateConfig added in v1.3.0

func ValidateConfig(cfg interface{}) error

func ValidateRAM added in v1.8.0

func ValidateRAM(r interfaces.RequestWithRAM, divisibility uint64) error

ValidateRAM checks if request contains RAM value that is positive integer divisible by divisibility passed. It is recommended to pass constants.RAM_DIVISIBILITY as divisility arguement

func ValidateRequest

func ValidateRequest(req interface{}) error

func ValidationError

func ValidationError(fe validator.FieldError) error

func ValidationErrors added in v1.6.7

func ValidationErrors(fes []validator.FieldError) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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