msgs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use ProtoMsg.ProtoReflect.Descriptor instead.

func (*ProtoMsg) GetMessage

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

func (*ProtoMsg) GetMessageID

func (x *ProtoMsg) GetMessageID() int32

func (*ProtoMsg) ProtoMessage

func (*ProtoMsg) ProtoMessage()

func (*ProtoMsg) ProtoReflect

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

func (*ProtoMsg) Reset

func (x *ProtoMsg) Reset()

func (*ProtoMsg) String

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

Deprecated: Use RavenA.ProtoReflect.Descriptor instead.

func (*RavenA) GetErrID

func (x *RavenA) GetErrID() int32

func (*RavenA) GetHeader

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

func (*RavenA) GetRequest

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

func (*RavenA) GetRespond

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

func (*RavenA) ProtoMessage

func (*RavenA) ProtoMessage()

func (*RavenA) ProtoReflect

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

func (*RavenA) Reset

func (x *RavenA) Reset()

func (*RavenA) String

func (x *RavenA) String() string

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

Deprecated: Use RavenQ.ProtoReflect.Descriptor instead.

func (*RavenQ) GetHeader

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

func (*RavenQ) GetRequest

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

func (*RavenQ) ProtoMessage

func (*RavenQ) ProtoMessage()

func (*RavenQ) ProtoReflect

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

func (*RavenQ) Reset

func (x *RavenQ) Reset()

func (*RavenQ) String

func (x *RavenQ) 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