[agent-go] 初步完成Executor部分的代码- 1

This commit is contained in:
zeaslity
2023-03-24 15:46:00 +08:00
parent 1af25d3992
commit 7e2450d30a
12 changed files with 60 additions and 41 deletions

View File

@@ -1,14 +1,14 @@
package g
import (
"agent-go/register"
"agent-go/config"
"github.com/spf13/viper"
)
type Global struct {
LOG *Logger
NacosConfig *viper.Viper
AgentServerInfo *register.AgentServerInfo
AgentServerInfo *config.AgentServerInfo
}
const (
@@ -17,6 +17,8 @@ const (
ExecOmType = "EXECUTOR"
StatusOmType = "STATUS"
InitOmType = "INIT"
// write about
)
var logger, _ = NewLogger()