MCPcopy Index your code
hub / github.com/apache/devlake / VerifyStruct

Function VerifyStruct

backend/server/services/base.go:57–63  ·  view source on GitHub ↗

VerifyStruct verifies given struct with `validator`

(v interface{})

Source from the content-addressed store, hash-verified

55
56// VerifyStruct verifies given struct with `validator`
57func VerifyStruct(v interface{}) errors.Error {
58 err := vld.Struct(v)
59 if err != nil {
60 return errors.BadInput.Wrap(err, "data verification failed")
61 }
62 return nil
63}

Callers 6

PutStoreFunction · 0.85
GetProjectsFunction · 0.85
CreateProjectFunction · 0.85
GetApiKeysFunction · 0.85
CreateApiKeyFunction · 0.85
GetTasksFunction · 0.85

Calls 1

WrapMethod · 0.80

Tested by

no test coverage detected