Documentation ¶
Index ¶
- Constants
- Variables
- func Unpack(msg *Message) ([]byte, error)
- type Compression
- type Flate
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetCompression() uint32
- func (x *Message) GetContent() []byte
- func (x *Message) GetLength() uint32
- func (x *Message) Marshal(_ any) ([]byte, error)
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- func (x *Message) Unmarshal(_ []byte, _ any) error
- type Msg
- type NoCompression
Constants ¶
View Source
const ( DefCompMethod NoCompression = NoCompression(0) FlateMethod Flate = Flate(1) )
Variables ¶
View Source
var File_message_message_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Compression ¶
type Message ¶
type Message struct { Compression uint32 `protobuf:"varint,1,opt,name=Compression,proto3" json:"Compression,omitempty"` Length uint32 `protobuf:"varint,3,opt,name=Length,proto3" json:"Length,omitempty"` Content []byte `protobuf:"bytes,4,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetCompression ¶
func (*Message) GetContent ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type NoCompression ¶
type NoCompression uint32
func (NoCompression) Decompress ¶
func (NoCompression) Decompress(dst []byte, src io.Reader) error
Click to show internal directories.
Click to hide internal directories.