started value formula

This commit is contained in:
Radu Ioan Fericean
2016-04-21 20:35:48 +03:00
parent e1d8d96402
commit b16cc28389
15 changed files with 149 additions and 127 deletions

View File

@@ -1,8 +1,6 @@
package utils
import (
"reflect"
)
import "reflect"
var rpcParamsMap map[string]*RpcParams
@@ -39,12 +37,10 @@ func RegisterRpcParams(name string, obj interface{}) {
OutParam: reflect.New(out).Interface(),
}
}
}
}
func GetRpcParams(method string) (*RpcParams, error) {
Logger.Info("REGISTERED: " + ToJSON(rpcParamsMap))
x, found := rpcParamsMap[method]
if !found {
return nil, ErrNotFound