Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
func
NewValidator() *CustomValidator {
12
return
&CustomValidator{
13
validator: _validator.New(),
14
}
15
}
16
17
func
(cv *CustomValidator) Validate(i
interface
{}) error {
18
return
cv.validator.Struct(i)
Callers
1
SetupApiServer
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected