snax service support cluster

This commit is contained in:
Cloud Wu
2015-05-20 16:13:11 +08:00
parent 4f93054f3a
commit 7b471ae27d
9 changed files with 31 additions and 5 deletions

View File

@@ -6,4 +6,8 @@ skynet.start(function()
print(skynet.call(proxy, "lua", "GET", "a"))
print(cluster.call("db", ".simpledb", "GET", "a"))
print(cluster.call("db2", ".simpledb", "GET", "b"))
-- test snax service
local pingserver = cluster.snax("db", "pingserver")
print(pingserver.req.ping "hello")
end)