Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
sidecar.proto
It has these top-level messages:
GetOneInstanceRequest GetOneInstanceResponse Response ServiceCallResult BatchServiceCallResult RegisterInstanceRequest DeregisterInstanceRequest InstanceHeartbeatRequest DetailErrInfo
Index ¶
- type BatchServiceCallResult
- type DeregisterInstanceRequest
- type DetailErrInfo
- type GetOneInstanceRequest
- func (*GetOneInstanceRequest) Descriptor() ([]byte, []int)
- func (m *GetOneInstanceRequest) GetNamespace() *google_protobuf.StringValue
- func (m *GetOneInstanceRequest) GetServiceName() *google_protobuf.StringValue
- func (*GetOneInstanceRequest) ProtoMessage()
- func (m *GetOneInstanceRequest) Reset()
- func (m *GetOneInstanceRequest) String() string
- type GetOneInstanceResponse
- type InstanceHeartbeatRequest
- type RegisterInstanceRequest
- type Response
- type ServiceCallResult
- func (*ServiceCallResult) Descriptor() ([]byte, []int)
- func (m *ServiceCallResult) GetInstance() *v11.Instance
- func (m *ServiceCallResult) GetRetCode() int32
- func (m *ServiceCallResult) GetRetStatus() int32
- func (m *ServiceCallResult) GetTimeDelay() int64
- func (*ServiceCallResult) ProtoMessage()
- func (m *ServiceCallResult) Reset()
- func (m *ServiceCallResult) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchServiceCallResult ¶
type BatchServiceCallResult struct {
CallResults []*ServiceCallResult `protobuf:"bytes,1,rep,name=call_results,json=callResults" json:"call_results,omitempty"`
}
批量发送用户调用结果
func (*BatchServiceCallResult) Descriptor ¶
func (*BatchServiceCallResult) Descriptor() ([]byte, []int)
func (*BatchServiceCallResult) GetCallResults ¶
func (m *BatchServiceCallResult) GetCallResults() []*ServiceCallResult
func (*BatchServiceCallResult) ProtoMessage ¶
func (*BatchServiceCallResult) ProtoMessage()
func (*BatchServiceCallResult) Reset ¶
func (m *BatchServiceCallResult) Reset()
func (*BatchServiceCallResult) String ¶
func (m *BatchServiceCallResult) String() string
type DeregisterInstanceRequest ¶
type DeregisterInstanceRequest struct {
Instance *v11.Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
}
反注册服务
func (*DeregisterInstanceRequest) Descriptor ¶
func (*DeregisterInstanceRequest) Descriptor() ([]byte, []int)
func (*DeregisterInstanceRequest) GetInstance ¶
func (m *DeregisterInstanceRequest) GetInstance() *v11.Instance
func (*DeregisterInstanceRequest) ProtoMessage ¶
func (*DeregisterInstanceRequest) ProtoMessage()
func (*DeregisterInstanceRequest) Reset ¶
func (m *DeregisterInstanceRequest) Reset()
func (*DeregisterInstanceRequest) String ¶
func (m *DeregisterInstanceRequest) String() string
type DetailErrInfo ¶
type DetailErrInfo struct { ErrCode uint32 `protobuf:"varint,1,opt,name=err_code,json=errCode" json:"err_code,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=err_msg,json=errMsg" json:"err_msg,omitempty"` }
详细的错误信息
func (*DetailErrInfo) Descriptor ¶
func (*DetailErrInfo) Descriptor() ([]byte, []int)
func (*DetailErrInfo) GetErrCode ¶
func (m *DetailErrInfo) GetErrCode() uint32
func (*DetailErrInfo) GetErrMsg ¶
func (m *DetailErrInfo) GetErrMsg() string
func (*DetailErrInfo) ProtoMessage ¶
func (*DetailErrInfo) ProtoMessage()
func (*DetailErrInfo) Reset ¶
func (m *DetailErrInfo) Reset()
func (*DetailErrInfo) String ¶
func (m *DetailErrInfo) String() string
type GetOneInstanceRequest ¶
type GetOneInstanceRequest struct { Namespace *google_protobuf.StringValue `protobuf:"bytes,1,opt,name=namespace" json:"namespace,omitempty"` ServiceName *google_protobuf.StringValue `protobuf:"bytes,2,opt,name=service_name,json=serviceName" json:"service_name,omitempty"` }
polaris 获取单个实例请求
func (*GetOneInstanceRequest) Descriptor ¶
func (*GetOneInstanceRequest) Descriptor() ([]byte, []int)
func (*GetOneInstanceRequest) GetNamespace ¶
func (m *GetOneInstanceRequest) GetNamespace() *google_protobuf.StringValue
func (*GetOneInstanceRequest) GetServiceName ¶
func (m *GetOneInstanceRequest) GetServiceName() *google_protobuf.StringValue
func (*GetOneInstanceRequest) ProtoMessage ¶
func (*GetOneInstanceRequest) ProtoMessage()
func (*GetOneInstanceRequest) Reset ¶
func (m *GetOneInstanceRequest) Reset()
func (*GetOneInstanceRequest) String ¶
func (m *GetOneInstanceRequest) String() string
type GetOneInstanceResponse ¶
type GetOneInstanceResponse struct {
Instance *v11.Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
}
polaris 获取单个实例返回
func (*GetOneInstanceResponse) Descriptor ¶
func (*GetOneInstanceResponse) Descriptor() ([]byte, []int)
func (*GetOneInstanceResponse) GetInstance ¶
func (m *GetOneInstanceResponse) GetInstance() *v11.Instance
func (*GetOneInstanceResponse) ProtoMessage ¶
func (*GetOneInstanceResponse) ProtoMessage()
func (*GetOneInstanceResponse) Reset ¶
func (m *GetOneInstanceResponse) Reset()
func (*GetOneInstanceResponse) String ¶
func (m *GetOneInstanceResponse) String() string
type InstanceHeartbeatRequest ¶
type InstanceHeartbeatRequest struct {
Instance *v11.Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
}
心跳
func (*InstanceHeartbeatRequest) Descriptor ¶
func (*InstanceHeartbeatRequest) Descriptor() ([]byte, []int)
func (*InstanceHeartbeatRequest) GetInstance ¶
func (m *InstanceHeartbeatRequest) GetInstance() *v11.Instance
func (*InstanceHeartbeatRequest) ProtoMessage ¶
func (*InstanceHeartbeatRequest) ProtoMessage()
func (*InstanceHeartbeatRequest) Reset ¶
func (m *InstanceHeartbeatRequest) Reset()
func (*InstanceHeartbeatRequest) String ¶
func (m *InstanceHeartbeatRequest) String() string
type RegisterInstanceRequest ¶
type RegisterInstanceRequest struct {
Instance *v11.Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
}
注册服务
func (*RegisterInstanceRequest) Descriptor ¶
func (*RegisterInstanceRequest) Descriptor() ([]byte, []int)
func (*RegisterInstanceRequest) GetInstance ¶
func (m *RegisterInstanceRequest) GetInstance() *v11.Instance
func (*RegisterInstanceRequest) ProtoMessage ¶
func (*RegisterInstanceRequest) ProtoMessage()
func (*RegisterInstanceRequest) Reset ¶
func (m *RegisterInstanceRequest) Reset()
func (*RegisterInstanceRequest) String ¶
func (m *RegisterInstanceRequest) String() string
type Response ¶
type Response struct { DnsCode int32 `protobuf:"varint,1,opt,name=dns_code,json=dnsCode" json:"dns_code,omitempty"` PolarisCode int32 `protobuf:"varint,2,opt,name=polaris_code,json=polarisCode" json:"polaris_code,omitempty"` PolarisDetailInfo string `protobuf:"bytes,3,opt,name=polaris_detail_info,json=polarisDetailInfo" json:"polaris_detail_info,omitempty"` }
通用response返回
func (*Response) Descriptor ¶
func (*Response) GetDnsCode ¶
func (*Response) GetPolarisCode ¶
func (*Response) GetPolarisDetailInfo ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type ServiceCallResult ¶
type ServiceCallResult struct { Instance *v11.Instance `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"` // 必选,本地服务调用的状态,正常or异常 RetStatus int32 `protobuf:"varint,2,opt,name=ret_status,json=retStatus" json:"ret_status,omitempty"` // 必选,本地服务调用的返回码 RetCode int32 `protobuf:"varint,3,opt,name=ret_code,json=retCode" json:"ret_code,omitempty"` // 必选,被调服务实例获取接口的最大时延 TimeDelay int64 `protobuf:"varint,4,opt,name=time_delay,json=timeDelay" json:"time_delay,omitempty"` }
用于用户调用结果上报
func (*ServiceCallResult) Descriptor ¶
func (*ServiceCallResult) Descriptor() ([]byte, []int)
func (*ServiceCallResult) GetInstance ¶
func (m *ServiceCallResult) GetInstance() *v11.Instance
func (*ServiceCallResult) GetRetCode ¶
func (m *ServiceCallResult) GetRetCode() int32
func (*ServiceCallResult) GetRetStatus ¶
func (m *ServiceCallResult) GetRetStatus() int32
func (*ServiceCallResult) GetTimeDelay ¶
func (m *ServiceCallResult) GetTimeDelay() int64
func (*ServiceCallResult) ProtoMessage ¶
func (*ServiceCallResult) ProtoMessage()
func (*ServiceCallResult) Reset ¶
func (m *ServiceCallResult) Reset()
func (*ServiceCallResult) String ¶
func (m *ServiceCallResult) String() string
Click to show internal directories.
Click to hide internal directories.