pcm-openstack/internal/config/config.go

40 lines
849 B
Go

package config
import (
"github.com/zeromicro/go-zero/core/logx"
"github.com/zeromicro/go-zero/zrpc"
)
const (
HOST = "10.101.15.3"
PORT = "6443"
)
type Config struct {
//AdapterId int `yaml:"AdapterId"`
zrpc.RpcServerConf
OpenstackConfig OpenstackConfig
CoreClientConf CoreClientConf
LogConf logx.LogConf
PcmCoreRpcConf zrpc.RpcClientConf
AdapterId int64
Participant Participant
CoreUrl string
ParticipantId int64
}
type Participant struct {
Address string `json:"address"`
Type string `json:"type"`
TenantId int64 `json:"tenantId"`
TenantName string `json:"tenantName"`
Labels map[string]string
}
type CoreClientConf struct {
/* Url string `yaml:"Url"`
DataSource string `yaml:"DataSource"`*/
AdapterId int64 `json:"AdapterId"`
CoreUrl string `json:"CoreUrl"`
}