package global import ( "mtp20access/config" "github.com/go-redis/redis/v8" "github.com/songzhibin97/gkit/cache/local_cache" "github.com/spf13/viper" "github.com/streadway/amqp" "go.uber.org/zap" "golang.org/x/sync/singleflight" "xorm.io/xorm" ) type RabbitMQ struct { Connection *amqp.Connection Channel *amqp.Channel } var ( M2A_DB *xorm.Engine M2A_REDIS *redis.Client M2A_CONFIG config.Server M2A_VP *viper.Viper M2A_LOG *zap.Logger M2A_RABBITMQ *RabbitMQ M2A_Concurrency_Control = &singleflight.Group{} BlackCache local_cache.Cache )