MCPcopy Create free account
hub / github.com/DNAProject/DNA / RegHandler

Method RegHandler

cmd/sigsvr/httpsvr.go:67–69  ·  view source on GitHub ↗
(method string, handler func(req *common.CliRpcRequest, resp *common.CliRpcResponse))

Source from the content-addressed store, hash-verified

65}
66
67func (this *CliRpcServer) RegHandler(method string, handler func(req *common.CliRpcRequest, resp *common.CliRpcResponse)) {
68 this.handlers[method] = handler
69}
70
71func (this *CliRpcServer) GetHandler(method string) func(req *common.CliRpcRequest, resp *common.CliRpcResponse) {
72 handler, ok := this.handlers[method]

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected