msgs

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use Proto.ProtoReflect.Descriptor instead.

func (*Proto) GetMessage added in v1.1.1

func (x *Proto) GetMessage() *anypb.Any

func (*Proto) GetMessageID added in v1.1.1

func (x *Proto) GetMessageID() int32

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

func (*Proto) Reset added in v1.1.1

func (x *Proto) Reset()

func (*Proto) String added in v1.1.1

func (x *Proto) String() string

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

Deprecated: Use ProtoTest.ProtoReflect.Descriptor instead.

func (*ProtoTest) GetData

func (x *ProtoTest) GetData() string

func (*ProtoTest) ProtoMessage

func (*ProtoTest) ProtoMessage()

func (*ProtoTest) ProtoReflect

func (x *ProtoTest) ProtoReflect() protoreflect.Message

func (*ProtoTest) Reset

func (x *ProtoTest) Reset()

func (*ProtoTest) String

func (x *ProtoTest) String() string

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

Deprecated: Use RavenC.ProtoReflect.Descriptor instead.

func (*RavenC) GetErrID added in v1.1.1

func (x *RavenC) GetErrID() int32

func (*RavenC) GetHeader added in v1.1.1

func (x *RavenC) GetHeader() *anypb.Any

func (*RavenC) GetMessageID added in v1.1.1

func (x *RavenC) GetMessageID() int32

func (*RavenC) GetRequest added in v1.1.1

func (x *RavenC) GetRequest() *anypb.Any

func (*RavenC) GetRespond added in v1.1.1

func (x *RavenC) GetRespond() []*anypb.Any

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

func (*RavenC) Reset added in v1.1.1

func (x *RavenC) Reset()

func (*RavenC) String added in v1.1.1

func (x *RavenC) String() string

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

Deprecated: Use RavenS.ProtoReflect.Descriptor instead.

func (*RavenS) GetHeader added in v1.1.1

func (x *RavenS) GetHeader() *anypb.Any

func (*RavenS) GetMessageID added in v1.1.1

func (x *RavenS) GetMessageID() int32

func (*RavenS) GetRequest added in v1.1.1

func (x *RavenS) GetRequest() *anypb.Any

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

func (*RavenS) Reset added in v1.1.1

func (x *RavenS) Reset()

func (*RavenS) String added in v1.1.1

func (x *RavenS) String() string

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

Deprecated: Use RavenTest.ProtoReflect.Descriptor instead.

func (*RavenTest) GetData

func (x *RavenTest) GetData() string

func (*RavenTest) ProtoMessage

func (*RavenTest) ProtoMessage()

func (*RavenTest) ProtoReflect

func (x *RavenTest) ProtoReflect() protoreflect.Message

func (*RavenTest) Reset

func (x *RavenTest) Reset()

func (*RavenTest) String

func (x *RavenTest) String() string

Jump to

Keyboard shortcuts

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