forked from JointCloud/pcm-coordinator
55 lines
1.2 KiB
Go
55 lines
1.2 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-queue/kq"
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/core/stores/redis"
|
|
"github.com/zeromicro/go-zero/rest"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type Config struct {
|
|
rest.RestConf
|
|
KqProducerConf struct {
|
|
Brokers []string
|
|
HpcTopic string
|
|
CloudTopic string
|
|
AiTopic string
|
|
}
|
|
DB struct {
|
|
DataSource string
|
|
}
|
|
Redis redis.RedisConf
|
|
Cache cache.CacheConf
|
|
LogConf logx.LogConf
|
|
HpcConsumerConf kq.KqConf
|
|
CloudConsumerConf kq.KqConf
|
|
AiConsumerConf kq.KqConf
|
|
K8sNativeConf zrpc.RpcClientConf
|
|
ACRpcConf zrpc.RpcClientConf
|
|
THRpcConf zrpc.RpcClientConf
|
|
ModelArtsRpcConf zrpc.RpcClientConf
|
|
CephRpcConf zrpc.RpcClientConf
|
|
OpenstackRpcConf zrpc.RpcClientConf
|
|
OctopusRpcConf zrpc.RpcClientConf
|
|
NexusUrl string
|
|
JccScheduleUrl string
|
|
MinioConf struct {
|
|
Secret string
|
|
AccessKey string
|
|
Endpoint string
|
|
}
|
|
|
|
RegistryConf struct {
|
|
Username string
|
|
Password string
|
|
}
|
|
SnowflakeConf SnowflakeConf
|
|
}
|
|
|
|
// SnowflakeConf 雪花算法机器id配置
|
|
type SnowflakeConf struct {
|
|
MachineId int64 `json:"machineId"`
|
|
}
|