blob: aba50fe067ebfb3f3ee577750316c7215a95b9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function hello()
return "Hello i am Lua"
end
function hello2()
return "Hello i am Lua [2]"
end
function hello3(arg1)
return "Hello i am a Lua function with 1 arg "..arg1
end
function hello4(arg1, arg2)
return "Hello i am a Lua function with 2 args "..arg1.." "..arg2
end
uwsgi.register_rpc("hello", hello)
uwsgi.register_rpc("hello2", hello2)
uwsgi.register_rpc("hello3", hello3)
uwsgi.register_rpc("hello4", hello4)
|