Documentation ¶
Index ¶
- Variables
- func NewProtobufCodec() remote.PayloadCodec
- type ErrorProto
- type MessageReaderWithMethodWithContext
- type MessageWriterWithContext
- 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
- type ProtobufMsgCodec
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 MessageReaderWithMethodWithContext ¶ added in v0.9.0
type MessageReaderWithMethodWithContext interface {
ReadPb(ctx context.Context, method string, in []byte) error
}
MessageReaderWithMethodWithContext read from ActualMsgBuf with method
type MessageWriterWithContext ¶ added in v0.9.0
MessageWriterWithContext writes to output bytebuffer
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
Directories ¶
Path | Synopsis |
---|---|
Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs.
|
Package encoding defines the interface for the compressor and codec, and functions to register and retrieve compressors and codecs. |
gzip
Package gzip implements and registers the gzip compressor during the initialization.
|
Package gzip implements and registers the gzip compressor during the initialization. |
Click to show internal directories.
Click to hide internal directories.