Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCodec = NewCodec()
View Source
var DefaultMarshal = NewMarshal()
View Source
var NewCodec = func() Codec {
return &defaultCodec{}
}
View Source
var NewMarshal = func() Marshaller {
return &defaultMarshal{}
}
Functions ¶
func RegisterCodec ¶
func RegisterMarshaller ¶
func RegisterMarshaller(name string, marshaller Marshaller)
Types ¶
type Frame ¶
type Frame struct { Header *FrameHeader // header of Frame Data []byte // serialized data }
type FrameHeader ¶
type Marshaller ¶
type Marshaller interface { Marshal(m protoreflect.ProtoMessage) ([]byte, error) Unmarshal(b []byte, m protoreflect.ProtoMessage) error }
func GetMarshaller ¶
func GetMarshaller(name string) Marshaller
Click to show internal directories.
Click to hide internal directories.