first commit
This commit is contained in:
24
apps/api/internal/config/config.go
Normal file
24
apps/api/internal/config/config.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/zeromicro/go-zero/core/stores/cache"
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
DataSource string // 数据库连接的 DSN 字符串
|
||||
CacheRedis cache.CacheConf // 缓存配置,使用 go-zero 自带的缓存配置结构体
|
||||
SentinelRpc zrpc.RpcClientConf
|
||||
KqPusherConf KqPusherConf
|
||||
WestConfig WestConfig
|
||||
}
|
||||
type KqPusherConf struct {
|
||||
Brokers []string
|
||||
Topic string
|
||||
}
|
||||
type WestConfig struct {
|
||||
Key string
|
||||
SecretId string
|
||||
}
|
||||
Reference in New Issue
Block a user