Exemplo n.º 1
0
func RegisterName(name string, rcvr interface{}) error {
	return rpcplus.RegisterName(name, rcvr)
}
Exemplo n.º 2
0
func rpcHandler(repo *FormationRepo) http.Handler {
	rpcplus.RegisterName("Controller", &ControllerRPC{formations: repo})
	return rpc.New(rpcplus.DefaultServer)
}