Documentation ¶
Index ¶
- Variables
- type Json
- type JsonTest
- type Proto
- type ProtoTest
- type RavenC
- func (*RavenC) Descriptor() ([]byte, []int)deprecated
- func (x *RavenC) GetErrID() int32
- func (x *RavenC) GetHeader() *anypb.Any
- func (x *RavenC) GetMessageID() int32
- func (x *RavenC) GetRequest() *anypb.Any
- func (x *RavenC) GetRespond() []*anypb.Any
- func (*RavenC) ProtoMessage()
- func (x *RavenC) ProtoReflect() protoreflect.Message
- func (x *RavenC) Reset()
- func (x *RavenC) String() string
- type RavenS
- func (*RavenS) Descriptor() ([]byte, []int)deprecated
- func (x *RavenS) GetHeader() *anypb.Any
- func (x *RavenS) GetMessageID() int32
- func (x *RavenS) GetRequest() *anypb.Any
- func (*RavenS) ProtoMessage()
- func (x *RavenS) ProtoReflect() protoreflect.Message
- func (x *RavenS) Reset()
- func (x *RavenS) String() string
- type RavenTest
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_proto protoreflect.FileDescriptor
View Source
var File_raven_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Json ¶ added in v1.1.1
type Json struct { MessageID int32 `json:"messageID"` // 訊息編號 Message []byte `json:"message"` // 訊息資料 }
Json json訊息資料
type Proto ¶ added in v1.1.1
type Proto 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 (*Proto) Descriptor
deprecated
added in
v1.1.1
func (*Proto) GetMessage ¶ added in v1.1.1
func (*Proto) GetMessageID ¶ added in v1.1.1
func (*Proto) ProtoMessage ¶ added in v1.1.1
func (*Proto) ProtoMessage()
func (*Proto) ProtoReflect ¶ added in v1.1.1
func (x *Proto) 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 RavenC ¶ added in v1.1.1
type RavenC struct { MessageID int32 `protobuf:"varint,1,opt,name=messageID,proto3" json:"messageID,omitempty"` // 訊息編號, 設置為int32以跟proto的列舉類型統一 ErrID int32 `protobuf:"varint,2,opt,name=errID,proto3" json:"errID,omitempty"` // 錯誤編號, 設置為int32以跟proto的列舉類型統一 Header *anypb.Any `protobuf:"bytes,3,opt,name=header,proto3" json:"header,omitempty"` // 標頭資料 Request *anypb.Any `protobuf:"bytes,4,opt,name=request,proto3" json:"request,omitempty"` // 要求資料 Respond []*anypb.Any `protobuf:"bytes,5,rep,name=respond,proto3" json:"respond,omitempty"` // 回應列表 // contains filtered or unexported fields }
Raven訊息資料, 伺服器傳送給客戶端
func (*RavenC) Descriptor
deprecated
added in
v1.1.1
func (*RavenC) GetMessageID ¶ added in v1.1.1
func (*RavenC) GetRequest ¶ added in v1.1.1
func (*RavenC) GetRespond ¶ added in v1.1.1
func (*RavenC) ProtoMessage ¶ added in v1.1.1
func (*RavenC) ProtoMessage()
func (*RavenC) ProtoReflect ¶ added in v1.1.1
func (x *RavenC) ProtoReflect() protoreflect.Message
type RavenS ¶ added in v1.1.1
type RavenS struct { MessageID int32 `protobuf:"varint,1,opt,name=messageID,proto3" json:"messageID,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"` // 要求資料 // contains filtered or unexported fields }
Raven訊息資料, 客戶端傳送給伺服器
func (*RavenS) Descriptor
deprecated
added in
v1.1.1
func (*RavenS) GetMessageID ¶ added in v1.1.1
func (*RavenS) GetRequest ¶ added in v1.1.1
func (*RavenS) ProtoMessage ¶ added in v1.1.1
func (*RavenS) ProtoMessage()
func (*RavenS) ProtoReflect ¶ added in v1.1.1
func (x *RavenS) ProtoReflect() protoreflect.Message
type RavenTest ¶ added in v1.1.0
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
added in
v1.1.0
func (*RavenTest) ProtoMessage ¶ added in v1.1.0
func (*RavenTest) ProtoMessage()
func (*RavenTest) ProtoReflect ¶ added in v1.1.0
func (x *RavenTest) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.