Documentation ¶
Index ¶
- Variables
- type ProtoMsg
- type ProtoTest
- type RavenA
- func (*RavenA) Descriptor() ([]byte, []int)deprecated
- func (x *RavenA) GetErrID() int32
- func (x *RavenA) GetHeader() *anypb.Any
- func (x *RavenA) GetRequest() *anypb.Any
- func (x *RavenA) GetRespond() []*anypb.Any
- func (*RavenA) ProtoMessage()
- func (x *RavenA) ProtoReflect() protoreflect.Message
- func (x *RavenA) Reset()
- func (x *RavenA) String() string
- type RavenQ
- type RavenTest
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protomsg_proto protoreflect.FileDescriptor
View Source
var File_raven_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProtoMsg ¶
type ProtoMsg struct { MessageID int32 `protobuf:"varint,1,opt,name=messageID,proto3" json:"messageID,omitempty"` // 訊息編號, 設置為int32以跟proto的列舉類型統一 Message *anypb.Any `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 訊息資料 // contains filtered or unexported fields }
Proto訊息資料
func (*ProtoMsg) Descriptor
deprecated
func (*ProtoMsg) GetMessage ¶
func (*ProtoMsg) GetMessageID ¶
func (*ProtoMsg) ProtoMessage ¶
func (*ProtoMsg) ProtoMessage()
func (*ProtoMsg) ProtoReflect ¶
func (x *ProtoMsg) ProtoReflect() protoreflect.Message
type ProtoTest ¶
type ProtoTest struct { Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // 測試字串 // contains filtered or unexported fields }
Proto訊息測試資料
func (*ProtoTest) Descriptor
deprecated
func (*ProtoTest) ProtoMessage ¶
func (*ProtoTest) ProtoMessage()
func (*ProtoTest) ProtoReflect ¶
func (x *ProtoTest) ProtoReflect() protoreflect.Message
type RavenA ¶
type RavenA struct { ErrID int32 `protobuf:"varint,1,opt,name=errID,proto3" json:"errID,omitempty"` // 錯誤編號, 設置為int32以跟proto的列舉類型統一 Header *anypb.Any `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"` // 標頭資料 Request *anypb.Any `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // 要求資料 Respond []*anypb.Any `protobuf:"bytes,4,rep,name=respond,proto3" json:"respond,omitempty"` // 回應列表 // contains filtered or unexported fields }
Raven回應訊息資料
func (*RavenA) Descriptor
deprecated
func (*RavenA) GetRequest ¶
func (*RavenA) GetRespond ¶
func (*RavenA) ProtoMessage ¶
func (*RavenA) ProtoMessage()
func (*RavenA) ProtoReflect ¶
func (x *RavenA) ProtoReflect() protoreflect.Message
type RavenQ ¶
type RavenQ struct { Header *anypb.Any `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // 標頭資料 Request *anypb.Any `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // 要求資料 // contains filtered or unexported fields }
Raven要求訊息資料
func (*RavenQ) Descriptor
deprecated
func (*RavenQ) GetRequest ¶
func (*RavenQ) ProtoMessage ¶
func (*RavenQ) ProtoMessage()
func (*RavenQ) ProtoReflect ¶
func (x *RavenQ) ProtoReflect() protoreflect.Message
type RavenTest ¶
type RavenTest struct { Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // 測試字串 // contains filtered or unexported fields }
Raven訊息測試資料
func (*RavenTest) Descriptor
deprecated
func (*RavenTest) ProtoMessage ¶
func (*RavenTest) ProtoMessage()
func (*RavenTest) ProtoReflect ¶
func (x *RavenTest) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.