mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-06-16 02:15:48 +00:00
21 lines
425 B
Lua
21 lines
425 B
Lua
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)
|