Documentation ¶
Index ¶
- Constants
- func MustRegisterErr(code int32, message string)
- func MustRegisterErrs(errs map[int32]string)
- func NewError(code int32, detail string) *errsvc.Error
- func ToFrameworkLabel(ms *MicroService) (string, string)
- type AddDependenciesRequest
- type AddDependenciesResponse
- type AddOrUpdateServiceRule
- type AddServiceRulesRequest
- type AddServiceRulesResponse
- type AddServiceTagsRequest
- type AddServiceTagsResponse
- type BatchFindInstancesRequest
- type BatchFindInstancesResponse
- type BatchFindResult
- type BatchGetInstancesRequest
- 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 EventType
- type FindFailedResult
- type FindInstance
- type FindInstancesRequest
- type FindInstancesResponse
- type FindResult
- type FindService
- type FrameWork
- type GetAllInstancesRequest
- type GetAllInstancesResponse
- type GetAllSchemaRequest
- type GetAllSchemaResponse
- type GetAppsRequest
- type GetAppsResponse
- type GetConDependenciesResponse
- type GetDependenciesRequest
- type GetExistenceByIDRequest
- type GetExistenceByIDResponse
- type GetExistenceRequest
- type GetExistenceResponse
- type GetInstancesRequest
- type GetInstancesResponse
- type GetOneInstanceRequest
- type GetOneInstanceResponse
- type GetProDependenciesResponse
- type GetProviderInstancesRequest
- type GetSchemaRequest
- type GetSchemaResponse
- type GetServiceCountRequest
- type GetServiceCountResponse
- type GetServiceDetailResponse
- type GetServiceRequest
- type GetServiceResponse
- type GetServiceRulesRequest
- type GetServiceRulesResponse
- type GetServiceTagsRequest
- type GetServiceTagsResponse
- type GetServicesInfoRequest
- type GetServicesInfoResponse
- type GetServicesInfoStatisticsResponse
- 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 ( ExistenceMicroservice string = "microservice" ExistenceSchema string = "schema" PropAllowCrossApp = "allowCrossApp" ResponseSuccess int32 = 0 AppID = "default" VERSION = "0.0.1" )
View Source
const ( ErrInvalidParams int32 = 400001 ErrUnhealthy int32 = 400002 ErrServiceAlreadyExists int32 = 400010 ErrServiceNotExists int32 = 400012 ErrDeployedInstance int32 = 400013 ErrUndefinedSchemaID int32 = 400014 ErrModifySchemaNotAllow int32 = 400015 ErrSchemaNotExists int32 = 400016 ErrInstanceNotExists int32 = 400017 ErrTagNotExists int32 = 400018 ErrRuleAlreadyExists int32 = 400019 ErrBlackAndWhiteRule int32 = 400020 ErrModifyRuleNotAllow int32 = 400021 ErrRuleNotExists int32 = 400022 ErrDependedOnConsumer int32 = 400023 ErrPermissionDeny int32 = 400024 ErrEndpointAlreadyExists int32 = 400025 ErrServiceVersionNotExists int32 = 400026 ErrNotEnoughQuota int32 = 400100 ErrForbidden int32 = 403001 ErrInternal int32 = 500003 )
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 EventType = "INIT" EVT_CREATE EventType = "CREATE" EVT_UPDATE EventType = "UPDATE" EVT_DELETE EventType = "DELETE" EVT_EXPIRE EventType = "EXPIRE" EVT_ERROR EventType = "ERROR" CHECK_BY_HEARTBEAT string = "push" CHECK_BY_PLATFORM string = "pull" )
View Source
const ( // ErrWebsocketInstanceNotExists custom error is used to end the websocket disconnection ErrWebsocketInstanceNotExists int = 4001 )
View Source
const Unknown = "UNKNOWN"
Variables ¶
This section is empty.
Functions ¶
func MustRegisterErr ¶ added in v0.5.0
func MustRegisterErrs ¶ added in v0.5.0
func ToFrameworkLabel ¶ added in v0.5.0
func ToFrameworkLabel(ms *MicroService) (string, string)
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:"-"`
}
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:"-"`
}
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:"-"` 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 BatchGetInstancesRequest ¶
type BatchGetInstancesRequest struct {
ServiceIds []string `json:"serviceIds,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"` }
func (*ConsumerDependency) String ¶
func (cd *ConsumerDependency) String() string
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:"-"`
}
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:"-"` 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:"-"`
}
type DeleteServiceRequest ¶
type DeleteServiceResponse ¶
type DeleteServiceResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
type DeleteServiceRulesResponse ¶
type DeleteServiceRulesResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
type DeleteServiceTagsResponse ¶
type DeleteServiceTagsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
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"` Alias string `protobuf:"bytes,7,opt,name=alias" json:"alias,omitempty"` }
type FindInstancesResponse ¶
type FindInstancesResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` 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 GetAllInstancesRequest ¶
type GetAllInstancesRequest struct { }
type GetAllInstancesResponse ¶
type GetAllInstancesResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` Instances []*MicroServiceInstance `protobuf:"bytes,2,rep,name=instances" json:"instances,omitempty"` }
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:"-"` Providers []*MicroService `protobuf:"bytes,2,rep,name=providers" json:"providers,omitempty"` }
type GetDependenciesRequest ¶
type GetExistenceByIDRequest ¶
type GetExistenceByIDRequest struct {
ServiceId string `protobuf:"bytes,1,opt,name=serviceId" json:"serviceId,omitempty"`
}
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:"-"` 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:"-"` 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:"-"` 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:"-"` Consumers []*MicroService `protobuf:"bytes,2,rep,name=consumers" json:"consumers,omitempty"` }
type GetProviderInstancesRequest ¶
type GetProviderInstancesRequest struct {
ProviderServiceId string `protobuf:"bytes,1,opt,name=providerServiceId" json:"providerServiceId,omitempty"`
}
type GetSchemaRequest ¶
type GetSchemaResponse ¶
type GetServiceCountRequest ¶
type GetServiceCountResponse ¶
type GetServiceDetailResponse ¶
type GetServiceDetailResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` 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:"-"` 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:"-"` 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"` Properties map[string]string `` /* 140-byte string literal not displayed */ CountOnly bool `protobuf:"varint,4,opt,name=countOnly" json:"countOnly,omitempty"` Environment string `protobuf:"bytes,6,opt,name=environment" json:"environment,omitempty"` }
type GetServicesInfoResponse ¶
type GetServicesInfoResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` AllServicesDetail []*ServiceDetail `protobuf:"bytes,2,rep,name=allServicesDetail" json:"allServicesDetail,omitempty"` Statistics *Statistics `protobuf:"bytes,3,opt,name=statistics" json:"statistics,omitempty"` }
type GetServicesInfoStatisticsResponse ¶ added in v0.3.0
type GetServicesInfoStatisticsResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` Statistics *Statistics `protobuf:"bytes,2,opt,name=" json:"statistics,omitempty"` }
type GetServicesRequest ¶
type GetServicesRequest struct {
}type GetServicesResponse ¶
type GetServicesResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"` 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:"-"`
}
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:"-"` 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" bson:"service_id"` AppId string `protobuf:"bytes,2,opt,name=appId" json:"appId,omitempty" bson:"app"` ServiceName string `protobuf:"bytes,3,opt,name=serviceName" json:"serviceName,omitempty" bson:"service_name"` 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 `` /* 160-byte string literal not displayed */ ModTimestamp string `protobuf:"bytes,15,opt,name=modTimestamp" json:"modTimestamp,omitempty" bson:"mod_timestamp"` Environment string `protobuf:"bytes,16,opt,name=environment" json:"environment,omitempty" bson:"env"` RegisterBy string `protobuf:"bytes,17,opt,name=registerBy" json:"registerBy,omitempty" bson:"register_by"` Framework *FrameWork `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" bson:"instance_id"` ServiceId string `protobuf:"bytes,2,opt,name=serviceId" json:"serviceId,omitempty" bson:"service_id"` 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" bson:"health_check"` Timestamp string `protobuf:"bytes,8,opt,name=timestamp" json:"timestamp,omitempty"` DataCenterInfo *DataCenterInfo `protobuf:"bytes,9,opt,name=dataCenterInfo" json:"dataCenterInfo,omitempty" bson:"data_center_info"` ModTimestamp string `protobuf:"bytes,10,opt,name=modTimestamp" json:"modTimestamp,omitempty" bson:"mod_timestamp"` 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: The format is "{domain}/{project}" Tenant string `protobuf:"bytes,1,opt,name=tenant" json:"tenant,omitempty"` Environment string `protobuf:"bytes,2,opt,name=environment" json:"environment,omitempty" bson:"env"` AppId string `protobuf:"bytes,3,opt,name=appId" json:"appId,omitempty" bson:"app"` ServiceName string `protobuf:"bytes,4,opt,name=serviceName" json:"serviceName,omitempty" bson:"service_name"` Alias string `protobuf:"bytes,5,opt,name=alias" json:"alias,omitempty"` Version string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"` }
func DependenciesToKeys ¶
func DependenciesToKeys(in []*MicroServiceKey, domainProject string) []*MicroServiceKey
func MicroServiceToKey ¶
func MicroServiceToKey(domainProject string, in *MicroService) *MicroServiceKey
func (*MicroServiceKey) String ¶
func (mk *MicroServiceKey) String() string
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:"-"`
}
type ModifySchemasRequest ¶
type ModifySchemasResponse ¶
type ModifySchemasResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
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 CreateResponse ¶
func CreateResponseWithSCErr ¶
func (*Response) GetMessage ¶
type Schema ¶
type Schema struct { SchemaId string `protobuf:"bytes,1,opt,name=schemaId" json:"schemaId,omitempty" bson:"schema_id"` 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" bson:"rule_id"` RuleType string `protobuf:"bytes,2,opt,name=ruleType" json:"ruleType,omitempty" bson:"rule_type"` 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" bson:"mod_timestamp"` }
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:"-"`
}
type UpdateInstancePropsResponse ¶
type UpdateInstancePropsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
type UpdateInstanceStatusResponse ¶
type UpdateInstanceStatusResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
type UpdateServicePropsResponse ¶
type UpdateServicePropsResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
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:"-"`
}
type UpdateServiceTagRequest ¶
type UpdateServiceTagResponse ¶
type UpdateServiceTagResponse struct {
Response *Response `protobuf:"bytes,1,opt,name=response" json:"-"`
}
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:"-"` 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.