Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONCodec ¶
type JSONCodec struct{}
JSONCodec is easyjson codec used for code generated by protogen. It is binary-level compatible with the standard protojson format, thus uses the same name.
type ProtoCodec ¶
type ProtoCodec struct{}
ProtoCodec is easyproto codec used for code generated by protogen. It is binary-level compatible with the standard proto codec, thus uses the same name.
func (ProtoCodec) Marshal ¶
func (ProtoCodec) Marshal(v any) ([]byte, error)
Marshal implements the encoding.Codec interface.
func (ProtoCodec) Name ¶
func (ProtoCodec) Name() string
Name implements the encoding.Codec interface.
type ProtoMarshaler ¶
ProtoMarshaler is an interface accepted by ProtoCodec.Marshal.
type ProtoUnmarshaler ¶
ProtoUnmarshaler is an interface accepted by ProtoCodec.Unmarshal.
Click to show internal directories.
Click to hide internal directories.