ginEx

package
v0.12.1-alpha2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(c *gin.Context, err error) (errorIsNotNil bool)

func BindAndValidateBody

func BindAndValidateBody(c *gin.Context, bodyDto any) bool

Types

type BindingError

type BindingError struct {
	// contains filtered or unexported fields
}

func (BindingError) Error

func (e BindingError) Error() string

type Cleaner

type Cleaner interface {
	Cleanup()
}

Cleaner can be implemented by a dto that is used in BindAndValidateBody for clean up values before validate

type Validate

type Validate interface {
	Validate() models.ValidationErrors
}

Validate can be implemented by a dto that is used in BindAndValidateBody for custom validation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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