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
code/core/application.go Normal file
View File

@ -0,0 +1,9 @@
package core
/**
* 从命令行输入的相关信息
*/
type Application interface {
//启动整个应用
Start()
}

View File

@ -1,10 +0,0 @@
package core
/**
* 从命令行输入的相关信息
*/
type Command interface {
//判断是否为命名行模式如果是直接按照命名行模式处理并返回true。如果不是返回false.
Cli() bool
}

View File

@ -3,7 +3,7 @@ package core
//该文件中记录的是应用系统中全局变量。主要有日志LOGGER和上下文CONTEXT
//命令行输入等相关信息
var COMMAND Command
var APPLICATION Application
//日志系统必须高保
//全局唯一的日志对象(在main函数中初始化)