forked from ifzz/zServer
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3cb5b5
commit a9f8432
Showing
19 changed files
with
368 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
return { | ||
[1] = {id=1, desc = "this is ggggttttitem one"}, | ||
[1] = {id=1, desc = "this is item one"}, | ||
[2] = {id=1, desc = "this is item two"}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule luafilesystem
added at
3c4e56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
local lfs = require "lfs" | ||
|
||
local M = {} | ||
|
||
|
||
local sep = string.match (package.config, "[^\n]+") | ||
function M.attrdir(path) | ||
for file in lfs.dir(path) do | ||
if file ~= "." and file ~= ".." then | ||
local f = path .. sep .. file | ||
print("\t=> " .. f .. " <=") | ||
local attr = lfs.attributes(f) | ||
assert(type(attr) == "table") | ||
if attr.mode == "directory" then | ||
M.attrdir(f) | ||
else | ||
for name, value in pairs(attr) do | ||
print(name, value) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
||
return M | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local skynet = require "skynet" | ||
|
||
local M = {} | ||
|
||
local agentpool | ||
local function init() | ||
agentpool = skynet.queryservice("agentpool") | ||
end | ||
|
||
|
||
function M.get() | ||
return skynet.call(agentpool, "lua", "get") | ||
end | ||
|
||
function M.recycle(agent) | ||
return skynet.call(agentpool, "lua", "recycle", agent) | ||
end | ||
|
||
skynet.init(init) | ||
|
||
return M | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
require "service" | ||
require "service" | ||
require "dbproxy" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters