Finish the feature of share and bridge.
This commit is contained in:
9
code/core/application.go
Normal file
9
code/core/application.go
Normal file
@ -0,0 +1,9 @@
|
||||
package core
|
||||
|
||||
/**
|
||||
* 从命令行输入的相关信息
|
||||
*/
|
||||
type Application interface {
|
||||
//启动整个应用
|
||||
Start()
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package core
|
||||
|
||||
/**
|
||||
* 从命令行输入的相关信息
|
||||
*/
|
||||
type Command interface {
|
||||
|
||||
//判断是否为命名行模式,如果是直接按照命名行模式处理,并返回true。如果不是返回false.
|
||||
Cli() bool
|
||||
}
|
@ -3,7 +3,7 @@ package core
|
||||
//该文件中记录的是应用系统中全局变量。主要有日志LOGGER和上下文CONTEXT
|
||||
|
||||
//命令行输入等相关信息
|
||||
var COMMAND Command
|
||||
var APPLICATION Application
|
||||
|
||||
//日志系统必须高保
|
||||
//全局唯一的日志对象(在main函数中初始化)
|
||||
|
Reference in New Issue
Block a user