xupospb

package
v0.0.0-...-d5522c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

XuperOS protos

为了兼容老版本,原样保留老版本pb结构给adapter使用。pb目录下是老版本pb结构,不建议再做更新。

新版本的pb结构暂时只增加了基本结构,待后续迭代补全。

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*BaseReq) GetHeader

func (m *BaseReq) GetHeader() *ReqHeader

func (*BaseReq) ProtoMessage

func (*BaseReq) ProtoMessage()

func (*BaseReq) Reset

func (m *BaseReq) Reset()

func (*BaseReq) String

func (m *BaseReq) String() string

func (*BaseReq) XXX_DiscardUnknown

func (m *BaseReq) XXX_DiscardUnknown()

func (*BaseReq) XXX_Marshal

func (m *BaseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseReq) XXX_Merge

func (m *BaseReq) XXX_Merge(src proto.Message)

func (*BaseReq) XXX_Size

func (m *BaseReq) XXX_Size() int

func (*BaseReq) XXX_Unmarshal

func (m *BaseReq) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*BaseResp) GetHeader

func (m *BaseResp) GetHeader() *RespHeader

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) Reset

func (m *BaseResp) Reset()

func (*BaseResp) String

func (m *BaseResp) String() string

func (*BaseResp) XXX_DiscardUnknown

func (m *BaseResp) XXX_DiscardUnknown()

func (*BaseResp) XXX_Marshal

func (m *BaseResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseResp) XXX_Merge

func (m *BaseResp) XXX_Merge(src proto.Message)

func (*BaseResp) XXX_Size

func (m *BaseResp) XXX_Size() int

func (*BaseResp) XXX_Unmarshal

func (m *BaseResp) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqHeader) GetLogId

func (m *ReqHeader) GetLogId() string

func (*ReqHeader) GetSelfName

func (m *ReqHeader) GetSelfName() string

func (*ReqHeader) ProtoMessage

func (*ReqHeader) ProtoMessage()

func (*ReqHeader) Reset

func (m *ReqHeader) Reset()

func (*ReqHeader) String

func (m *ReqHeader) String() string

func (*ReqHeader) XXX_DiscardUnknown

func (m *ReqHeader) XXX_DiscardUnknown()

func (*ReqHeader) XXX_Marshal

func (m *ReqHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqHeader) XXX_Merge

func (m *ReqHeader) XXX_Merge(src proto.Message)

func (*ReqHeader) XXX_Size

func (m *ReqHeader) XXX_Size() int

func (*ReqHeader) XXX_Unmarshal

func (m *ReqHeader) XXX_Unmarshal(b []byte) error

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

func (*UnimplementedXuperOSServer) CheckAlive(ctx context.Context, req *BaseReq) (*BaseResp, error)

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

type XuperOSServer

type XuperOSServer interface {
	// 示例接口
	CheckAlive(context.Context, *BaseReq) (*BaseResp, error)
}

XuperOSServer is the server API for XuperOS service.

Directories

Path Synopsis
Package pb is a reverse proxy.
Package pb is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL