transfer_middleware/cmd/rpc/internal/config/config.go

28 lines
626 B
Go
Raw Normal View History

2024-06-07 11:11:04 +08:00
package config
import (
"github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/zrpc"
"trasfer_middleware/cmd/rpc/etc"
2024-07-09 17:07:22 +08:00
marketTypes "trasfer_middleware/cmd/rpc/internal/logic/po/market/types"
rsTypes "trasfer_middleware/cmd/rpc/internal/logic/po/rs/types"
zltxTypes "trasfer_middleware/cmd/rpc/internal/logic/po/zltx/types"
2024-06-07 11:11:04 +08:00
)
type Config struct {
zrpc.RpcServerConf
etc.ExtraConfig
Cache cache.CacheConf
2024-07-09 17:07:22 +08:00
ZLTX zltxTypes.ZLTXConf
Market marketTypes.MarketConf
RS rsTypes.RSConf
2024-06-12 13:46:14 +08:00
DB struct {
Master struct {
DataSource string
}
Slave struct {
DataSource string
}
}
2024-06-07 11:11:04 +08:00
}