Documentation ¶
Index ¶
- type GoValidator
- type NewValidatorInput
- type Validator
- type ValidatorContext
- func (validator ValidatorContext) GetValidatorName() nucleo.ValidatorType
- func (validator ValidatorContext) Middleware(rawCtx interface{}, next func(...interface{}))
- func (validator ValidatorContext) Middlewares() nucleo.Middlewares
- func (validator ValidatorContext) Validate(params nucleo.Payload, schema interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoValidator ¶
type GoValidator struct {
// contains filtered or unexported fields
}
func NewGoValidator ¶
func NewGoValidator() *GoValidator
func (*GoValidator) Validate ¶
func (g *GoValidator) Validate(params nucleo.Payload, schema map[string]interface{}) map[string]interface{}
type NewValidatorInput ¶
type NewValidatorInput struct {
Type nucleo.ValidatorType
}
type Validator ¶
type Validator interface { Validate(params nucleo.Payload, schema interface{}) map[string]interface{} GetValidatorName() nucleo.ValidatorType Middlewares() nucleo.Middlewares }
func NewValidator ¶
func NewValidator(input NewValidatorInput) Validator
type ValidatorContext ¶
type ValidatorContext struct { Type nucleo.ValidatorType GoValidator *GoValidator }
func (ValidatorContext) GetValidatorName ¶
func (validator ValidatorContext) GetValidatorName() nucleo.ValidatorType
func (ValidatorContext) Middleware ¶
func (validator ValidatorContext) Middleware(rawCtx interface{}, next func(...interface{}))
func (ValidatorContext) Middlewares ¶
func (validator ValidatorContext) Middlewares() nucleo.Middlewares
func (ValidatorContext) Validate ¶
func (validator ValidatorContext) Validate(params nucleo.Payload, schema interface{}) map[string]interface{}
Click to show internal directories.
Click to hide internal directories.