pb

package
v0.0.0-...-e035a65 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
const (
	Const_ZERO                   Const = 0
	Const_MAX_REQUEST_HEADER_LEN Const = 1024
)

func (Const) Descriptor

func (Const) Descriptor() protoreflect.EnumDescriptor

func (Const) Enum

func (x Const) Enum() *Const

func (Const) EnumDescriptor deprecated

func (Const) EnumDescriptor() ([]byte, []int)

Deprecated: Use Const.Descriptor instead.

func (Const) Number

func (x Const) Number() protoreflect.EnumNumber

func (Const) String

func (x Const) String() string

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

Jump to

Keyboard shortcuts

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