MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Validator

Interface Validator

rpc/jsonrpc/middleware.go:13–15  ·  view source on GitHub ↗

Validator is designed for params checking.

Source from the content-addressed store, hash-verified

11
12// Validator is designed for params checking.
13type Validator interface {
14 Validate() error
15}
16
17// middleware: unmarshal req.Params(JSON array) to pre-defined structures (Object).
18func processParams(h HandlerFunc, paramsType reflect.Type) HandlerFunc {

Callers 2

LoadConfigFunction · 0.65
processParamsFunction · 0.65

Implementers 4

Configcmd/cql-proxy/config/proxy.go
bpGetTransactionListParamsapi/transactions.go

Calls

no outgoing calls

Tested by

no test coverage detected