app.go 306 B

12345678910111213141516171819
  1. package global
  2. import (
  3. "go-nc/configs/config"
  4. "github.com/redis/go-redis/v9"
  5. "go.uber.org/zap"
  6. "gorm.io/gorm"
  7. )
  8. type Application struct {
  9. Config config.Configuration
  10. DB *gorm.DB
  11. StarRocksDB *gorm.DB
  12. Log *zap.Logger
  13. Redis *redis.Client
  14. }
  15. var App = new(Application)