serde

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBrokenGoavroValue  = fmt.Errorf("goavro native value is broken")
	ErrInvalidGoavroUnion = fmt.Errorf("It is not a goavro union value")
)

Functions

This section is empty.

Types

type SerDe

type SerDe struct {
	Codec *goavro.Codec
	// contains filtered or unexported fields
}

func NewSerDe

func NewSerDe(msg descriptor.Message) (*SerDe, error)

func (*SerDe) Deserialize

func (s *SerDe) Deserialize(avroBytes []byte, v proto.Message) error

func (*SerDe) Serialize

func (s *SerDe) Serialize(msg proto.Message) ([]byte, error)

Jump to

Keyboard shortcuts

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