Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protomsg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type JsonMsg ¶
type JsonMsg struct { MessageID int32 `json:"messageID"` // 訊息編號 Message []byte `json:"message"` // 訊息資料 }
JsonMsg json訊息資料
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
Click to show internal directories.
Click to hide internal directories.