Documentation
¶
Index ¶
- Constants
- type AddDependenciesRequest
- type AddDependenciesResponse
- type AddOrUpdateServiceRule
- type AddServiceRulesRequest
- type AddServiceRulesResponse
- type AddServiceTagsRequest
- type AddServiceTagsResponse
- type BatchFindInstancesRequest
- type BatchFindInstancesResponse
- type BatchFindResult
- type ConsumerDependency
- type CreateDependenciesRequest
- type CreateDependenciesResponse
- type CreateServiceRequest
- type CreateServiceResponse
- type DataCenterInfo
- type DelServicesRequest
- type DelServicesResponse
- type DelServicesRspInfo
- type DeleteSchemaRequest
- type DeleteSchemaResponse
- type DeleteServiceRequest
- type DeleteServiceResponse
- type DeleteServiceRulesRequest
- type DeleteServiceRulesResponse
- type DeleteServiceTagsRequest
- type DeleteServiceTagsResponse
- type FindFailedResult
- type FindInstance
- type FindInstancesRequest
- type FindInstancesResponse
- type FindResult
- type FindService
- type FrameWorkProperty
- type GetAllSchemaRequest
- type GetAllSchemaResponse
- type GetAppsRequest
- type GetAppsResponse
- type GetConDependenciesResponse
- type GetDependenciesRequest
- type GetExistenceRequest
- type GetExistenceResponse
- type GetInstancesRequest
- type GetInstancesResponse
- type GetOneInstanceRequest
- type GetOneInstanceResponse
- type GetProDependenciesResponse
- type GetSchemaRequest
- type GetSchemaResponse
- type GetServiceDetailResponse
- type GetServiceRequest
- type GetServiceResponse
- type GetServiceRulesRequest
- type GetServiceRulesResponse
- type GetServiceTagsRequest
- type GetServiceTagsResponse
- type GetServicesInfoRequest
- type GetServicesInfoResponse
- type GetServicesRequest
- type GetServicesResponse
- type HealthCheck
- type HeartbeatRequest
- type HeartbeatResponse
- type HeartbeatSetElement
- type HeartbeatSetRequest
- type HeartbeatSetResponse
- type InstanceHbRst
- type MicroService
- type MicroServiceDependency
- type MicroServiceInstance
- type MicroServiceInstanceKey
- type MicroServiceKey
- type ModifySchemaRequest
- type ModifySchemaResponse
- type ModifySchemasRequest
- type ModifySchemasResponse
- type RegisterInstanceRequest
- type RegisterInstanceResponse
- type Response
- type Schema
- type ServiceDetail
- type ServicePath
- type ServiceRule
- type StApp
- type StInstance
- type StService
- type Statistics
- type UnregisterInstanceRequest
- type UnregisterInstanceResponse
- type UpdateInstancePropsRequest
- type UpdateInstancePropsResponse
- type UpdateInstanceStatusRequest
- type UpdateInstanceStatusResponse
- type UpdateServicePropsRequest
- type UpdateServicePropsResponse
- type UpdateServiceRuleRequest
- type UpdateServiceRuleResponse
- type UpdateServiceTagRequest
- type UpdateServiceTagResponse
- type WatchInstanceRequest
- type WatchInstanceResponse
Constants ¶
View Source
const ( MS_UP string = "UP" MS_DOWN string = "DOWN" MSI_UP string = "UP" MSI_DOWN string = "DOWN" MSI_STARTING string = "STARTING" MSI_TESTING string = "TESTING" MSI_OUTOFSERVICE string = "OUTOFSERVICE" ENV_DEV string = "development" ENV_TEST string = "testing" ENV_ACCEPT string = "acceptance" ENV_PROD string = "production" REGISTERBY_SDK string = "SDK" REGISTERBY_SIDECAR string = "SIDECAR" REGISTERBY_PLATFORM string = "PLATFORM" EVT_INIT types.EventType = "INIT" EVT_CREATE types.EventType = "CREATE" EVT_UPDATE types.EventType = "UPDATE" EVT_DELETE types.EventType = "DELETE" EVT_EXPIRE types.EventType = "EXPIRE" EVT_ERROR types.EventType = "ERROR" CHECK_BY_HEARTBEAT string = "push" CHECK_BY_PLATFORM string = "pull" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDependenciesRequest ¶
type AddDependenciesRequest struct {
Dependencies []*ConsumerDependency `protobuf:"bytes,1,rep,name=dependencies" json:"dependencies,omitempty"`
}
type AddDependenciesResponse ¶
type AddDependenciesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type AddOrUpdateServiceRule ¶
type AddOrUpdateServiceRule struct {
RuleType string `protobuf:"bytes,1,opt,name=ruleType" json:"ruleType,omitempty"`
Attribute string `protobuf:"bytes,2,opt,name=attribute" json:"attribute,omitempty"`
Pattern string `protobuf:"bytes,3,opt,name=pattern" json:"pattern,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
}
type AddServiceRulesRequest ¶
type AddServiceRulesRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
Rules []*AddOrUpdateServiceRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"`
}
type AddServiceRulesResponse ¶
type AddServiceTagsRequest ¶
type AddServiceTagsResponse ¶
type AddServiceTagsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type BatchFindInstancesRequest ¶
type BatchFindInstancesRequest struct {
ConsumerServiceId string `protobuf:"bytes,1,opt,name=consumerServiceId" json:"consumerServiceId,omitempty"`
Services []*FindService `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
Instances []*FindInstance `protobuf:"bytes,3,rep,name=instances" json:"instances,omitempty"`
}
type BatchFindInstancesResponse ¶
type BatchFindInstancesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Services *BatchFindResult `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
Instances *BatchFindResult `protobuf:"bytes,3,rep,name=instances" json:"instances,omitempty"`
}
type BatchFindResult ¶
type BatchFindResult struct {
Failed []*FindFailedResult `protobuf:"bytes,1,rep,name=failed" json:"failed,omitempty"`
NotModified []int64 `protobuf:"varint,2,rep,packed,name=notModified" json:"notModified,omitempty"`
Updated []*FindResult `protobuf:"bytes,3,rep,name=updated" json:"updated,omitempty"`
}
type ConsumerDependency ¶
type ConsumerDependency struct {
Consumer *MicroServiceKey `protobuf:"bytes,1,opt,name=consumer" json:"consumer,omitempty"`
Providers []*MicroServiceKey `protobuf:"bytes,2,rep,name=providers" json:"providers,omitempty"`
Override bool `protobuf:"varint,3,opt,name=override" json:"override,omitempty"`
}
type CreateDependenciesRequest ¶
type CreateDependenciesRequest struct {
Dependencies []*ConsumerDependency `protobuf:"bytes,1,rep,name=dependencies" json:"dependencies,omitempty"`
}
type CreateDependenciesResponse ¶
type CreateDependenciesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type CreateServiceRequest ¶
type CreateServiceRequest struct {
Service *MicroService `protobuf:"bytes,1,opt,name=service" json:"service,omitempty"`
Rules []*AddOrUpdateServiceRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"`
Tags map[string]string `` /* 128-byte string literal not displayed */
Instances []*MicroServiceInstance `protobuf:"bytes,4,rep,name=instances" json:"instances,omitempty"`
}
type CreateServiceResponse ¶
type DataCenterInfo ¶
type DelServicesRequest ¶
type DelServicesRequest struct {
ServiceIds []string `protobuf:"bytes,1,rep,name=serviceIds" json:"serviceIds,omitempty"`
Force bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
}
删除服务请求
type DelServicesResponse ¶
type DelServicesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Services []*DelServicesRspInfo `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
}
删除服务响应
type DelServicesRspInfo ¶
type DelServicesRspInfo struct {
ErrMessage string `protobuf:"bytes,1,opt,name=errMessage" json:"errMessage,omitempty"`
ServiceId string `protobuf:"bytes,2,opt,name=serviceId" json:"serviceId,omitempty"`
}
删除服务响应内容
type DeleteSchemaRequest ¶
type DeleteSchemaResponse ¶
type DeleteSchemaResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type DeleteServiceRequest ¶
type DeleteServiceResponse ¶
type DeleteServiceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type DeleteServiceRulesResponse ¶
type DeleteServiceRulesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type DeleteServiceTagsResponse ¶
type DeleteServiceTagsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type FindFailedResult ¶
type FindInstance ¶
type FindInstance struct {
Instance *HeartbeatSetElement `protobuf:"bytes,1,opt,name=instance" json:"instance"`
Rev string `protobuf:"bytes,2,opt,name=rev" json:"rev,omitempty"`
}
type FindInstancesRequest ¶
type FindInstancesRequest struct {
ConsumerServiceId string `protobuf:"bytes,1,opt,name=consumerServiceId" json:"consumerServiceId,omitempty"`
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
VersionRule string `protobuf:"bytes,4,opt,name=versionRule" json:"versionRule,omitempty"`
Tags []string `protobuf:"bytes,5,rep,name=tags" json:"tags,omitempty"`
Environment string `protobuf:"bytes,6,opt,name=environment" json:"environment,omitempty"`
}
type FindInstancesResponse ¶
type FindInstancesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Instances []*MicroServiceInstance `protobuf:"bytes,2,rep,name=instances" json:"instances,omitempty"`
}
type FindResult ¶
type FindResult struct {
Index int64 `protobuf:"varint,1,opt,name=index" json:"index"`
Rev string `protobuf:"bytes,2,opt,name=rev" json:"rev"`
Instances []*MicroServiceInstance `protobuf:"bytes,3,rep,name=instances" json:"instances,omitempty"`
}
type FindService ¶
type FindService struct {
Service *MicroServiceKey `protobuf:"bytes,1,opt,name=service" json:"service"`
Rev string `protobuf:"bytes,2,opt,name=rev" json:"rev,omitempty"`
}
type FrameWorkProperty ¶
type GetAllSchemaRequest ¶
type GetAllSchemaResponse ¶
type GetAppsRequest ¶
type GetAppsRequest struct {
Environment string `protobuf:"bytes,1,opt,name=environment" json:"environment,omitempty"`
}
type GetAppsResponse ¶
type GetConDependenciesResponse ¶
type GetConDependenciesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Providers []*MicroService `protobuf:"bytes,2,rep,name=providers" json:"providers,omitempty"`
}
type GetDependenciesRequest ¶
type GetExistenceRequest ¶
type GetExistenceRequest struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
ServiceId string `protobuf:"bytes,5,opt,name=serviceId" json:"serviceId,omitempty"`
SchemaId string `protobuf:"bytes,6,opt,name=schemaId" json:"schemaId,omitempty"`
Environment string `protobuf:"bytes,7,opt,name=environment" json:"environment,omitempty"`
}
type GetExistenceResponse ¶
type GetExistenceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
ServiceId string `protobuf:"bytes,2,opt,name=serviceId" json:"serviceId,omitempty"`
SchemaId string `protobuf:"bytes,3,opt,name=schemaId" json:"schemaId,omitempty"`
Summary string `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
}
func (*GetExistenceResponse) GetSummary ¶
func (m *GetExistenceResponse) GetSummary() string
type GetInstancesRequest ¶
type GetInstancesRequest struct {
ConsumerServiceId string `protobuf:"bytes,1,opt,name=consumerServiceId" json:"consumerServiceId,omitempty"`
ProviderServiceId string `protobuf:"bytes,2,opt,name=providerServiceId" json:"providerServiceId,omitempty"`
Tags []string `protobuf:"bytes,3,rep,name=tags" json:"tags,omitempty"`
}
type GetInstancesResponse ¶
type GetInstancesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Instances []*MicroServiceInstance `protobuf:"bytes,2,rep,name=instances" json:"instances,omitempty"`
}
type GetOneInstanceRequest ¶
type GetOneInstanceRequest struct {
ConsumerServiceId string `protobuf:"bytes,1,opt,name=consumerServiceId" json:"consumerServiceId,omitempty"`
ProviderServiceId string `protobuf:"bytes,2,opt,name=providerServiceId" json:"providerServiceId,omitempty"`
ProviderInstanceId string `protobuf:"bytes,3,opt,name=providerInstanceId" json:"providerInstanceId,omitempty"`
Tags []string `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"`
}
type GetOneInstanceResponse ¶
type GetOneInstanceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Instance *MicroServiceInstance `protobuf:"bytes,2,opt,name=instance" json:"instance,omitempty"`
}
type GetProDependenciesResponse ¶
type GetProDependenciesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Consumers []*MicroService `protobuf:"bytes,2,rep,name=consumers" json:"consumers,omitempty"`
}
type GetSchemaRequest ¶
type GetSchemaResponse ¶
type GetServiceDetailResponse ¶
type GetServiceDetailResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Service *ServiceDetail `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
}
服务详情返回信息
type GetServiceRequest ¶
type GetServiceRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
}
type GetServiceResponse ¶
type GetServiceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Service *MicroService `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
}
type GetServiceRulesRequest ¶
type GetServiceRulesRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
}
type GetServiceRulesResponse ¶
type GetServiceRulesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Rules []*ServiceRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"`
}
type GetServiceTagsRequest ¶
type GetServiceTagsRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
}
type GetServiceTagsResponse ¶
type GetServicesInfoRequest ¶
type GetServicesInfoRequest struct {
Options []string `protobuf:"bytes,1,rep,name=options" json:"options,omitempty"`
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
CountOnly bool `protobuf:"varint,4,opt,name=countOnly" json:"countOnly,omitempty"`
}
type GetServicesInfoResponse ¶
type GetServicesInfoResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
AllServicesDetail []*ServiceDetail `protobuf:"bytes,2,rep,name=allServicesDetail" json:"allServicesDetail,omitempty"`
Statistics *Statistics `protobuf:"bytes,3,opt,name=statistics" json:"statistics,omitempty"`
}
type GetServicesRequest ¶
type GetServicesRequest struct {
}
type GetServicesResponse ¶
type GetServicesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Services []*MicroService `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
}
type HealthCheck ¶
type HealthCheck struct {
Mode string `protobuf:"bytes,1,opt,name=mode" json:"mode,omitempty"`
Port int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
Interval int32 `protobuf:"varint,3,opt,name=interval" json:"interval,omitempty"`
Times int32 `protobuf:"varint,4,opt,name=times" json:"times,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url" json:"url,omitempty"`
}
type HeartbeatRequest ¶
type HeartbeatResponse ¶
type HeartbeatResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type HeartbeatSetElement ¶
type HeartbeatSetRequest ¶
type HeartbeatSetRequest struct {
Instances []*HeartbeatSetElement `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
}
type HeartbeatSetResponse ¶
type HeartbeatSetResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Instances []*InstanceHbRst `protobuf:"bytes,2,rep,name=instances" json:"instances,omitempty"`
}
type InstanceHbRst ¶
type MicroService ¶
type MicroService struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty"`
ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty"`
Version string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"`
Level string `protobuf:"bytes,6,opt,name=level" json:"level,omitempty"`
Schemas []string `protobuf:"bytes,7,rep,name=schemas" json:"schemas,omitempty"`
Paths []*ServicePath `protobuf:"bytes,10,rep,name=paths" json:"paths,omitempty"`
Status string `protobuf:"bytes,8,opt,name=status" json:"status,omitempty"`
Properties map[string]string `` /* 140-byte string literal not displayed */
Timestamp string `protobuf:"bytes,11,opt,name=timestamp" json:"timestamp,omitempty"`
Providers []*MicroServiceKey `protobuf:"bytes,12,rep,name=providers" json:"providers,omitempty"`
Alias string `protobuf:"bytes,13,opt,name=alias" json:"alias,omitempty"`
LBStrategy map[string]string `` /* 141-byte string literal not displayed */
ModTimestamp string `protobuf:"bytes,15,opt,name=modTimestamp" json:"modTimestamp,omitempty"`
Environment string `protobuf:"bytes,16,opt,name=environment" json:"environment,omitempty"`
RegisterBy string `protobuf:"bytes,17,opt,name=registerBy" json:"registerBy,omitempty"`
Framework *FrameWorkProperty `protobuf:"bytes,18,opt,name=framework" json:"framework,omitempty"`
}
func (*MicroService) ProtoMessage ¶
func (*MicroService) ProtoMessage()
func (*MicroService) Reset ¶
func (m *MicroService) Reset()
func (*MicroService) String ¶
func (m *MicroService) String() string
type MicroServiceDependency ¶
type MicroServiceDependency struct {
Dependency []*MicroServiceKey `json:"Dependency,omitempty"`
}
type MicroServiceInstance ¶
type MicroServiceInstance struct {
InstanceId string `protobuf:"bytes,1,opt,name=instanceId" json:"instanceId,omitempty"`
ServiceId string `protobuf:"bytes,2,opt,name=serviceId" json:"serviceId,omitempty"`
Endpoints []string `protobuf:"bytes,3,rep,name=endpoints" json:"endpoints,omitempty"`
HostName string `protobuf:"bytes,4,opt,name=hostName" json:"hostName,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status" json:"status,omitempty"`
Properties map[string]string `` /* 140-byte string literal not displayed */
HealthCheck *HealthCheck `protobuf:"bytes,7,opt,name=healthCheck" json:"healthCheck,omitempty"`
Timestamp string `protobuf:"bytes,8,opt,name=timestamp" json:"timestamp,omitempty"`
DataCenterInfo *DataCenterInfo `protobuf:"bytes,9,opt,name=dataCenterInfo" json:"dataCenterInfo,omitempty"`
ModTimestamp string `protobuf:"bytes,10,opt,name=modTimestamp" json:"modTimestamp,omitempty"`
Version string `protobuf:"bytes,11,opt,name=version" json:"version,omitempty"`
}
func (*MicroServiceInstance) ProtoMessage ¶
func (*MicroServiceInstance) ProtoMessage()
func (*MicroServiceInstance) Reset ¶
func (m *MicroServiceInstance) Reset()
func (*MicroServiceInstance) String ¶
func (m *MicroServiceInstance) String() string
type MicroServiceInstanceKey ¶
type MicroServiceKey ¶
type MicroServiceKey struct {
Tenant string `protobuf:"bytes,1,opt,name=tenant" json:"tenant,omitempty"`
Project string `protobuf:"bytes,2,opt,name=project" json:"project,omitempty"`
AppId string `protobuf:"bytes,3,opt,name=appId" json:"appId,omitempty"`
ServiceName string `protobuf:"bytes,4,opt,name=serviceName" json:"serviceName,omitempty"`
Version string `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"`
Environment string `protobuf:"bytes,6,opt,name=environment" json:"environment,omitempty"`
Alias string `protobuf:"bytes,7,opt,name=alias" json:"alias,omitempty"`
}
type ModifySchemaRequest ¶
type ModifySchemaRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
SchemaId string `protobuf:"bytes,2,opt,name=schemaId" json:"schemaId,omitempty"`
Schema string `protobuf:"bytes,3,opt,name=schema" json:"schema,omitempty"`
Summary string `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
}
type ModifySchemaResponse ¶
type ModifySchemaResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type ModifySchemasRequest ¶
type ModifySchemasResponse ¶
type ModifySchemasResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type RegisterInstanceRequest ¶
type RegisterInstanceRequest struct {
Instance *MicroServiceInstance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
}
type Response ¶
type Response struct {
Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}
func (*Response) GetMessage ¶
type Schema ¶
type Schema struct {
SchemaId string `protobuf:"bytes,1,opt,name=schemaId" json:"schemaId,omitempty"`
Summary string `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"`
Schema string `protobuf:"bytes,3,opt,name=schema" json:"schema,omitempty"`
}
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
type ServiceDetail ¶
type ServiceDetail struct {
MicroService *MicroService `protobuf:"bytes,1,opt,name=microService" json:"microService,omitempty"`
Instances []*MicroServiceInstance `protobuf:"bytes,2,rep,name=instances" json:"instances,omitempty"`
SchemaInfos []*Schema `protobuf:"bytes,3,rep,name=schemaInfos" json:"schemaInfos,omitempty"`
Rules []*ServiceRule `protobuf:"bytes,4,rep,name=rules" json:"rules,omitempty"`
Providers []*MicroService `protobuf:"bytes,5,rep,name=providers" json:"providers,omitempty"`
Consumers []*MicroService `protobuf:"bytes,6,rep,name=consumers" json:"consumers,omitempty"`
Tags map[string]string `` /* 128-byte string literal not displayed */
MicroServiceVersions []string `protobuf:"bytes,8,rep,name=microServiceVersions" json:"microServiceVersions,omitempty"`
Statics *Statistics `protobuf:"bytes,9,opt,name=statics" json:"statics,omitempty"`
}
服务详情
type ServicePath ¶
type ServiceRule ¶
type ServiceRule struct {
RuleId string `protobuf:"bytes,1,opt,name=ruleId" json:"ruleId,omitempty"`
RuleType string `protobuf:"bytes,2,opt,name=ruleType" json:"ruleType,omitempty"`
Attribute string `protobuf:"bytes,3,opt,name=attribute" json:"attribute,omitempty"`
Pattern string `protobuf:"bytes,4,opt,name=pattern" json:"pattern,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"`
Timestamp string `protobuf:"bytes,6,opt,name=timestamp" json:"timestamp,omitempty"`
ModTimestamp string `protobuf:"bytes,7,opt,name=modTimestamp" json:"modTimestamp,omitempty"`
}
type StApp ¶
type StApp struct {
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
type StInstance ¶
type Statistics ¶
type Statistics struct {
Services *StService `protobuf:"bytes,1,opt,name=services" json:"services,omitempty"`
Instances *StInstance `protobuf:"bytes,2,opt,name=instances" json:"instances,omitempty"`
Apps *StApp `protobuf:"bytes,3,opt,name=apps" json:"apps,omitempty"`
}
type UnregisterInstanceResponse ¶
type UnregisterInstanceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type UpdateInstancePropsResponse ¶
type UpdateInstancePropsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type UpdateInstanceStatusResponse ¶
type UpdateInstanceStatusResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type UpdateServicePropsResponse ¶
type UpdateServicePropsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type UpdateServiceRuleRequest ¶
type UpdateServiceRuleRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
RuleId string `protobuf:"bytes,2,opt,name=ruleId" json:"ruleId,omitempty"`
Rule *AddOrUpdateServiceRule `protobuf:"bytes,3,opt,name=rule" json:"rule,omitempty"`
}
type UpdateServiceRuleResponse ¶
type UpdateServiceRuleResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type UpdateServiceTagRequest ¶
type UpdateServiceTagResponse ¶
type UpdateServiceTagResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
type WatchInstanceRequest ¶
type WatchInstanceRequest struct {
SelfServiceId string `protobuf:"bytes,1,opt,name=selfServiceId" json:"selfServiceId,omitempty"`
}
type WatchInstanceResponse ¶
type WatchInstanceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
Action string `protobuf:"bytes,2,opt,name=action" json:"action,omitempty"`
Key *MicroServiceKey `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
Instance *MicroServiceInstance `protobuf:"bytes,4,opt,name=instance" json:"instance,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.