Documentation
¶
Index ¶
- func GetErrors(err error) validator.ValidationErrors
- func IsInSlice(str string, target []string) bool
- func IsSubSlice(source []string, target []string) bool
- func ValidateConfig(cfg interface{}) error
- func ValidateRAM(r interfaces.RequestWithRAM, divisibility uint64) error
- func ValidateRequest(req interface{}) error
- func ValidationError(fe validator.FieldError) error
- func ValidationErrors(fes []validator.FieldError) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSubSlice ¶ added in v1.8.0
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.
Click to show internal directories.
Click to hide internal directories.