potato/global/global.go

26 lines
500 B
Go
Raw Normal View History

2021-03-23 00:55:26 +08:00
/*
* @Date: 2021-03-22 09:42:09
* @LastEditors: viletyy
2021-06-14 21:15:55 +08:00
* @LastEditTime: 2021-06-13 23:53:51
2021-03-23 00:55:26 +08:00
* @FilePath: /potato/global/global.go
*/
package global
import (
"github.com/go-redis/redis"
"github.com/jinzhu/gorm"
2021-06-14 21:15:55 +08:00
"github.com/opentracing/opentracing-go"
2021-03-23 00:55:26 +08:00
"github.com/spf13/viper"
"github.com/viletyy/potato/config"
"go.uber.org/zap"
)
var (
GO_DB *gorm.DB
GO_REDIS *redis.Client
GO_CONFIG *config.Config
GO_VP *viper.Viper
GO_LOG *zap.Logger
2021-06-14 21:15:55 +08:00
GO_TRACER opentracing.Tracer
2021-03-23 00:55:26 +08:00
)