This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
29 additions
and
41 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
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,21 +1,22 @@ | ||
package luavm | ||
|
||
import "os" | ||
const ( | ||
defaultFileLua = "default.lua" | ||
defaultFileKey = "lua" | ||
) | ||
|
||
// Order is important | ||
var ( | ||
libs = []string{ | ||
"lib_task.lua", | ||
"lib_node.lua", | ||
"lib_geo.lua", | ||
"lib_log.lua", | ||
"lib_main.lua", | ||
} | ||
) | ||
|
||
type Config struct { | ||
Instance string | ||
LuaFile string | ||
LuaTask string | ||
Timeout string | ||
BaseURL string | ||
} | ||
|
||
func DefaultConfig() Config { | ||
return Config{ | ||
Instance: "gosd.0", | ||
LuaFile: "test_min.lua", | ||
LuaTask: "lua", | ||
Timeout: "2h", | ||
BaseURL: os.Getenv("BASE_URL"), | ||
} | ||
} |
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 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