Documentation ¶
Index ¶
- Variables
- type Const
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)deprecated
- func (x *RequestHeader) GetChecksum() uint32
- func (x *RequestHeader) GetId() uint64
- func (x *RequestHeader) GetMethod() string
- func (x *RequestHeader) GetRawRequestLen() uint32
- func (x *RequestHeader) GetSnappyCompressedRequestLen() uint32
- func (*RequestHeader) ProtoMessage()
- func (x *RequestHeader) ProtoReflect() protoreflect.Message
- func (x *RequestHeader) Reset()
- func (x *RequestHeader) String() string
- type ResponseHeader
- func (*ResponseHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseHeader) GetChecksum() uint32
- func (x *ResponseHeader) GetError() string
- func (x *ResponseHeader) GetId() uint64
- func (x *ResponseHeader) GetRawResponseLen() uint32
- func (x *ResponseHeader) GetSnappyCompressedResponseLen() uint32
- func (*ResponseHeader) ProtoMessage()
- func (x *ResponseHeader) ProtoReflect() protoreflect.Message
- func (x *ResponseHeader) Reset()
- func (x *ResponseHeader) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Const_name = map[int32]string{ 0: "ZERO", 1024: "MAX_REQUEST_HEADER_LEN", } Const_value = map[string]int32{ "ZERO": 0, "MAX_REQUEST_HEADER_LEN": 1024, } )
Enum value maps for Const.
View Source
var File_codec_pb_header_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Const ¶
type Const int32
func (Const) Descriptor ¶
func (Const) Descriptor() protoreflect.EnumDescriptor
func (Const) EnumDescriptor
deprecated
func (Const) Number ¶
func (x Const) Number() protoreflect.EnumNumber
func (Const) Type ¶
func (Const) Type() protoreflect.EnumType
type RequestHeader ¶
type RequestHeader struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` RawRequestLen uint32 `protobuf:"varint,3,opt,name=raw_request_len,json=rawRequestLen,proto3" json:"raw_request_len,omitempty"` SnappyCompressedRequestLen uint32 `` /* 144-byte string literal not displayed */ Checksum uint32 `protobuf:"varint,5,opt,name=checksum,proto3" json:"checksum,omitempty"` // contains filtered or unexported fields }
func (*RequestHeader) Descriptor
deprecated
func (*RequestHeader) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.
func (*RequestHeader) GetChecksum ¶
func (x *RequestHeader) GetChecksum() uint32
func (*RequestHeader) GetId ¶
func (x *RequestHeader) GetId() uint64
func (*RequestHeader) GetMethod ¶
func (x *RequestHeader) GetMethod() string
func (*RequestHeader) GetRawRequestLen ¶
func (x *RequestHeader) GetRawRequestLen() uint32
func (*RequestHeader) GetSnappyCompressedRequestLen ¶
func (x *RequestHeader) GetSnappyCompressedRequestLen() uint32
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
func (*RequestHeader) ProtoReflect ¶
func (x *RequestHeader) ProtoReflect() protoreflect.Message
func (*RequestHeader) Reset ¶
func (x *RequestHeader) Reset()
func (*RequestHeader) String ¶
func (x *RequestHeader) String() string
type ResponseHeader ¶
type ResponseHeader struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` RawResponseLen uint32 `protobuf:"varint,3,opt,name=raw_response_len,json=rawResponseLen,proto3" json:"raw_response_len,omitempty"` SnappyCompressedResponseLen uint32 `` /* 147-byte string literal not displayed */ Checksum uint32 `protobuf:"varint,5,opt,name=checksum,proto3" json:"checksum,omitempty"` // contains filtered or unexported fields }
func (*ResponseHeader) Descriptor
deprecated
func (*ResponseHeader) Descriptor() ([]byte, []int)
Deprecated: Use ResponseHeader.ProtoReflect.Descriptor instead.
func (*ResponseHeader) GetChecksum ¶
func (x *ResponseHeader) GetChecksum() uint32
func (*ResponseHeader) GetError ¶
func (x *ResponseHeader) GetError() string
func (*ResponseHeader) GetId ¶
func (x *ResponseHeader) GetId() uint64
func (*ResponseHeader) GetRawResponseLen ¶
func (x *ResponseHeader) GetRawResponseLen() uint32
func (*ResponseHeader) GetSnappyCompressedResponseLen ¶
func (x *ResponseHeader) GetSnappyCompressedResponseLen() uint32
func (*ResponseHeader) ProtoMessage ¶
func (*ResponseHeader) ProtoMessage()
func (*ResponseHeader) ProtoReflect ¶
func (x *ResponseHeader) ProtoReflect() protoreflect.Message
func (*ResponseHeader) Reset ¶
func (x *ResponseHeader) Reset()
func (*ResponseHeader) String ¶
func (x *ResponseHeader) String() string
Click to show internal directories.
Click to hide internal directories.