Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CBORSerializer ¶
func (*CBORSerializer) Deserialize ¶
func (c *CBORSerializer) Deserialize(b []byte, i interface{}) error
func (*CBORSerializer) Serialize ¶
func (c *CBORSerializer) Serialize(i interface{}) ([]byte, error)
func (*CBORSerializer) SerializeFuncWithBuffer ¶
type JsonSerializer ¶
type JsonSerializer struct {
}
func (*JsonSerializer) Deserialize ¶
func (s *JsonSerializer) Deserialize(b []byte, i interface{}) error
func (*JsonSerializer) Serialize ¶
func (s *JsonSerializer) Serialize(i interface{}) ([]byte, error)
type ProtobufMarshaler ¶ added in v0.1.44
type ProtobufSerializer ¶ added in v0.1.44
type ProtobufSerializer struct {
Encoder ProtobufMarshaler
Decoder ProtobufUnmarshaler
SkipVT bool
}
ProtobufSerializer with support for vtproto (code-gen'd) protobuf, and standard protobuf (google.golang.org/protobuf/proto).
To use standard protobuf, set the Encoder and Decoder to proto.Marshal and proto.Unmarshal respectively. You can leave them unset if you use vtproto.
func (*ProtobufSerializer) Deserialize ¶ added in v0.1.44
func (s *ProtobufSerializer) Deserialize(b []byte, i interface{}) error
func (*ProtobufSerializer) Serialize ¶ added in v0.1.44
func (s *ProtobufSerializer) Serialize(i interface{}) ([]byte, error)
type ProtobufUnmarshaler ¶ added in v0.1.44
type ProtobufVTMmarshaler ¶ added in v0.1.44
type ProtobufVTUnmarshaler ¶ added in v0.1.44
Click to show internal directories.
Click to hide internal directories.