MCPcopy Create free account
hub / github.com/actiontech/dtle / NewValidator

Function NewValidator

api/handler/validator.go:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11func NewValidator() *CustomValidator {
12 return &CustomValidator{
13 validator: _validator.New(),
14 }
15}
16
17func (cv *CustomValidator) Validate(i interface{}) error {
18 return cv.validator.Struct(i)

Callers 1

SetupApiServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected