Documentation ¶
Index ¶
- Variables
- func NewGRPCCodec() remote.Codec
- func NewProtobufCodec() remote.PayloadCodec
- type ErrorProto
- type MockReq
- func (*MockReq) Descriptor() ([]byte, []int)deprecated
- func (x *MockReq) GetMsg() string
- func (x *MockReq) GetStrList() []string
- func (x *MockReq) GetStrMap() map[string]string
- func (*MockReq) ProtoMessage()
- func (x *MockReq) ProtoReflect() protoreflect.Message
- func (x *MockReq) Reset()
- func (x *MockReq) String() string
- type PBError
Constants ¶
This section is empty.
Variables ¶
View Source
var File_kitex_pkg_remote_codec_protobuf_error_proto protoreflect.FileDescriptor
View Source
var File_test_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type ErrorProto ¶
type ErrorProto struct { TypeID int32 `protobuf:"varint,1,opt,name=TypeID,proto3" json:"TypeID,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
Messages used for transporting error between server and client.
func (*ErrorProto) Descriptor
deprecated
func (*ErrorProto) Descriptor() ([]byte, []int)
Deprecated: Use ErrorProto.ProtoReflect.Descriptor instead.
func (*ErrorProto) GetMessage ¶
func (x *ErrorProto) GetMessage() string
func (*ErrorProto) GetTypeID ¶
func (x *ErrorProto) GetTypeID() int32
func (*ErrorProto) ProtoMessage ¶
func (*ErrorProto) ProtoMessage()
func (*ErrorProto) ProtoReflect ¶
func (x *ErrorProto) ProtoReflect() protoreflect.Message
func (*ErrorProto) Reset ¶
func (x *ErrorProto) Reset()
func (*ErrorProto) String ¶
func (x *ErrorProto) String() string
type MockReq ¶
type MockReq struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` StrMap map[string]string `` /* 153-byte string literal not displayed */ StrList []string `protobuf:"bytes,3,rep,name=strList,proto3" json:"strList,omitempty"` // contains filtered or unexported fields }
func (*MockReq) Descriptor
deprecated
func (*MockReq) GetStrList ¶
func (*MockReq) ProtoMessage ¶
func (*MockReq) ProtoMessage()
func (*MockReq) ProtoReflect ¶
func (x *MockReq) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.