Documentation ¶
Index ¶
- func RegisterXuperOSServer(s *grpc.Server, srv XuperOSServer)
- type BaseReq
- func (*BaseReq) Descriptor() ([]byte, []int)
- func (m *BaseReq) GetHeader() *ReqHeader
- func (*BaseReq) ProtoMessage()
- func (m *BaseReq) Reset()
- func (m *BaseReq) String() string
- func (m *BaseReq) XXX_DiscardUnknown()
- func (m *BaseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseReq) XXX_Merge(src proto.Message)
- func (m *BaseReq) XXX_Size() int
- func (m *BaseReq) XXX_Unmarshal(b []byte) error
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)
- func (m *BaseResp) GetHeader() *RespHeader
- func (*BaseResp) ProtoMessage()
- func (m *BaseResp) Reset()
- func (m *BaseResp) String() string
- func (m *BaseResp) XXX_DiscardUnknown()
- func (m *BaseResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseResp) XXX_Merge(src proto.Message)
- func (m *BaseResp) XXX_Size() int
- func (m *BaseResp) XXX_Unmarshal(b []byte) error
- type ReqHeader
- func (*ReqHeader) Descriptor() ([]byte, []int)
- func (m *ReqHeader) GetLogId() string
- func (m *ReqHeader) GetSelfName() string
- func (*ReqHeader) ProtoMessage()
- func (m *ReqHeader) Reset()
- func (m *ReqHeader) String() string
- func (m *ReqHeader) XXX_DiscardUnknown()
- func (m *ReqHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqHeader) XXX_Merge(src proto.Message)
- func (m *ReqHeader) XXX_Size() int
- func (m *ReqHeader) XXX_Unmarshal(b []byte) error
- type RespHeader
- func (*RespHeader) Descriptor() ([]byte, []int)
- func (m *RespHeader) GetErrCode() int64
- func (m *RespHeader) GetErrMsg() string
- func (m *RespHeader) GetLogId() string
- func (m *RespHeader) GetTraceId() string
- func (*RespHeader) ProtoMessage()
- func (m *RespHeader) Reset()
- func (m *RespHeader) String() string
- func (m *RespHeader) XXX_DiscardUnknown()
- func (m *RespHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespHeader) XXX_Merge(src proto.Message)
- func (m *RespHeader) XXX_Size() int
- func (m *RespHeader) XXX_Unmarshal(b []byte) error
- type UnimplementedXuperOSServer
- type XuperOSClient
- type XuperOSServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterXuperOSServer ¶
func RegisterXuperOSServer(s *grpc.Server, srv XuperOSServer)
Types ¶
type BaseReq ¶
type BaseReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BaseReq) Descriptor ¶
func (*BaseReq) ProtoMessage ¶
func (*BaseReq) ProtoMessage()
func (*BaseReq) XXX_DiscardUnknown ¶
func (m *BaseReq) XXX_DiscardUnknown()
func (*BaseReq) XXX_Marshal ¶
func (*BaseReq) XXX_Unmarshal ¶
type BaseResp ¶
type BaseResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BaseResp) Descriptor ¶
func (*BaseResp) GetHeader ¶
func (m *BaseResp) GetHeader() *RespHeader
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) XXX_DiscardUnknown ¶
func (m *BaseResp) XXX_DiscardUnknown()
func (*BaseResp) XXX_Marshal ¶
func (*BaseResp) XXX_Unmarshal ¶
type ReqHeader ¶
type ReqHeader struct { // 请求id LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // 标记请求方,方便问题定位 SelfName string `protobuf:"bytes,2,opt,name=self_name,json=selfName,proto3" json:"self_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
通用请求Header
func (*ReqHeader) Descriptor ¶
func (*ReqHeader) GetSelfName ¶
func (*ReqHeader) ProtoMessage ¶
func (*ReqHeader) ProtoMessage()
func (*ReqHeader) XXX_DiscardUnknown ¶
func (m *ReqHeader) XXX_DiscardUnknown()
func (*ReqHeader) XXX_Marshal ¶
func (*ReqHeader) XXX_Unmarshal ¶
type RespHeader ¶
type RespHeader struct { // 请求id LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // 错误码 ErrCode int64 `protobuf:"varint,2,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"` // 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` // 节点追踪信息,方便问题定位 TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
通用响应Header
func (*RespHeader) Descriptor ¶
func (*RespHeader) Descriptor() ([]byte, []int)
func (*RespHeader) GetErrCode ¶
func (m *RespHeader) GetErrCode() int64
func (*RespHeader) GetErrMsg ¶
func (m *RespHeader) GetErrMsg() string
func (*RespHeader) GetLogId ¶
func (m *RespHeader) GetLogId() string
func (*RespHeader) GetTraceId ¶
func (m *RespHeader) GetTraceId() string
func (*RespHeader) ProtoMessage ¶
func (*RespHeader) ProtoMessage()
func (*RespHeader) Reset ¶
func (m *RespHeader) Reset()
func (*RespHeader) String ¶
func (m *RespHeader) String() string
func (*RespHeader) XXX_DiscardUnknown ¶
func (m *RespHeader) XXX_DiscardUnknown()
func (*RespHeader) XXX_Marshal ¶
func (m *RespHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespHeader) XXX_Merge ¶
func (m *RespHeader) XXX_Merge(src proto.Message)
func (*RespHeader) XXX_Size ¶
func (m *RespHeader) XXX_Size() int
func (*RespHeader) XXX_Unmarshal ¶
func (m *RespHeader) XXX_Unmarshal(b []byte) error
type UnimplementedXuperOSServer ¶
type UnimplementedXuperOSServer struct { }
UnimplementedXuperOSServer can be embedded to have forward compatible implementations.
func (*UnimplementedXuperOSServer) CheckAlive ¶
type XuperOSClient ¶
type XuperOSClient interface { // 示例接口 CheckAlive(ctx context.Context, in *BaseReq, opts ...grpc.CallOption) (*BaseResp, error) }
XuperOSClient is the client API for XuperOS service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewXuperOSClient ¶
func NewXuperOSClient(cc grpc.ClientConnInterface) XuperOSClient
Click to show internal directories.
Click to hide internal directories.