Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationInfo ¶
type AggregationInfo struct {
Ip string `json:"ip"`
Type string `json:"type"` // govern,grpc,http
Port string `json:"port"`
RegKey string `json:"regKey"`
Address string `json:"address"`
Labels struct {
Enable string `json:"enable"`
Env string `json:"env"`
Group string `json:"group"`
Hostname string `json:"hostname"`
Region string `json:"region"`
UpTimestamp string `json:"startTs"` // 启动时间
VcsInfo string `json:"vcsInfo"`
Weight string `json:"weight"`
Zone string `json:"zone"`
} `json:"labels"`
}
type AggregationRegister ¶
type AggregationRegister struct {
Provider ProviderEtcdInfo `json:"provider"`
Configurators ConfiguratorsEtcdInfo `json:"configurators"`
Aggregation AggregationInfo `json:"aggregation"`
}
type ConfigProviderStore ¶
type ConfigProviderStore struct {
ID int32
AppName string
RegKey string
RegValue string `gorm:"type:text"`
Schema string
Address string
Enable int8
Group string
Weight int64
ProcessStartAt int64
CreateAt int64
UpdateAt int64
}
func (*ConfigProviderStore) TableName ¶
func (c *ConfigProviderStore) TableName() string
type ConfiguratorsEtcdInfo ¶
type ConfiguratorsEtcdInfo struct {
RawValue string `json:"rawValue"` // 检验数据
RegKey string `json:"regKey"`
Type string `json:"type"` // govern,grpc,http
Ip string `json:"ip"`
Port string `json:"port"`
Address string `json:"address"`
Labels struct {
Enable string `json:"enable"`
Env string `json:"env"`
Group string `json:"group"`
Hostname string `json:"hostname"`
Weight string `json:"weight"`
} `json:"labels"`
}
治理的configurators信息
type ProviderEtcdInfo ¶
type ProviderEtcdInfo struct {
RawValue string `json:"rawValue"` // 检验数据
RegKey string `json:"regKey"`
Type string `json:"type"` // govern,grpc,http
Ip string `json:"ip"`
Port string `json:"port"`
Address string `json:"address"`
Labels struct {
Enable string `json:"enable"`
Env string `json:"env"`
Group string `json:"group"`
Hostname string `json:"hostname"`
Region string `json:"region"`
UpTimestamp string `json:"startTs"` // 启动时间
VcsInfo string `json:"vcsInfo"`
Weight string `json:"weight"`
Zone string `json:"zone"`
} `json:"labels"`
}
治理的provider信息
type ProviderStore ¶
type ProviderStore struct {
ID int32 `gorm:"not null"json:"id"`
AppName string `gorm:"not null"json:"appName"`
RegKey string `gorm:"not null"json:"regKey"`
RegValue json.RawMessage `gorm:"not null;type:text"json:"regValue"`
Region string `gorm:"not null"json:"region"`
Zone string `gorm:"not null"json:"zone"`
Scheme string `gorm:"not null"json:"scheme"`
Address string `gorm:"not null"json:"address"`
IP string `gorm:"not null"json:"ip"`
HostName string `gorm:"not null"json:"hostName"`
Type string `gorm:"not null"json:"type"`
Enable int8 `gorm:"not null"json:"enable"`
Group string `gorm:"not null"json:"group"`
Weight int64 `gorm:"not null"json:"weight"`
ProcessStartAt int64 `gorm:"not null"json:"processStartAt"`
VcsInfo string `gorm:"not null;"json:"vcsInfo"`
CreateAt int64 `gorm:"not null"json:"createAt"`
UpdateAt int64 `gorm:"not null"json:"updateAt"`
}
func (*ProviderStore) TableName ¶
func (p *ProviderStore) TableName() string
Click to show internal directories.
Click to hide internal directories.