Finish the feature of share and bridge.

This commit is contained in:
zicla
2019-04-29 21:14:29 +08:00
parent ca721c78e6
commit d75c4a222e
20 changed files with 605 additions and 330 deletions
+9
View File
@@ -0,0 +1,9 @@
package core
/**
* 从命令行输入的相关信息
*/
type Application interface {
//启动整个应用
Start()
}
-10
View File
@@ -1,10 +0,0 @@
package core
/**
* 从命令行输入的相关信息
*/
type Command interface {
//判断是否为命名行模式,如果是直接按照命名行模式处理,并返回true。如果不是返回false.
Cli() bool
}
+1 -1
View File
@@ -3,7 +3,7 @@ package core
//该文件中记录的是应用系统中全局变量。主要有日志LOGGER和上下文CONTEXT
//命令行输入等相关信息
var COMMAND Command
var APPLICATION Application
//日志系统必须高保
//全局唯一的日志对象(在main函数中初始化)