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

Method GetHandler

cmd/sigsvr/httpsvr.go:71–77  ·  view source on GitHub ↗
(method string)

Source from the content-addressed store, hash-verified

69}
70
71func (this *CliRpcServer) GetHandler(method string) func(req *common.CliRpcRequest, resp *common.CliRpcResponse) {
72 handler, ok := this.handlers[method]
73 if !ok {
74 return nil
75 }
76 return handler
77}
78
79func (this *CliRpcServer) Handler(w http.ResponseWriter, r *http.Request) {
80 resp := &common.CliRpcResponse{}

Callers 1

HandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected