[agent-go] 完成RabbitMQ连接部分的代码

This commit is contained in:
zeaslity
2023-03-21 17:08:22 +08:00
parent 1c57a631d9
commit fe8a4a03fc
19 changed files with 482 additions and 93 deletions

View File

@@ -1,9 +1,20 @@
package g
import "github.com/spf13/viper"
type Global struct {
LOG *Logger
LOG *Logger
NacosConfig *viper.Viper
}
const (
QueueDirect = "direct"
QueueTopic = "topic"
ExecOmType = "EXECUTOR"
StatusOmType = "STATUS"
InitOmType = "INIT"
)
var logger, _ = NewLogger()
var G = NewGlobal(