Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const ErrIncorrectMagic + var MaxMajorVersion = 2 + var MinMajorVersion = 2 + func CheckMagic(from *bufio.Reader) bool + func Read(ctx context.Context, from io.Reader, events Events, forceDynamic bool) error + type Dynamic struct + Desc *descriptor.DescriptorProto + Fields map[string]interface{} + func (Dynamic) ProtoMessage() + func (d *Dynamic) Reset() + func (d *Dynamic) Unmarshal(data []byte) error + func (d Dynamic) Format(f fmt.State, r rune) + func (d Dynamic) String() string + type ErrUnknownType struct + TypeName string + func (e ErrUnknownType) Error() string + type ErrUnsupportedVersion struct + Version Version + func (e ErrUnsupportedVersion) Error() string + type Events interface + BeginChildGroup func(ctx context.Context, msg proto.Message, id, parentID uint64) error + BeginGroup func(ctx context.Context, msg proto.Message, id uint64) error + ChildObject func(ctx context.Context, msg proto.Message, parentID uint64) error + EndGroup func(ctx context.Context, id uint64) error + Object func(ctx context.Context, msg proto.Message) error + type Version struct + Major int + Minor int + type Writer struct + func NewWriter(to io.Writer) (*Writer, error) + func (w *Writer) BeginChildGroup(ctx context.Context, msg proto.Message, parentID uint64) (id uint64, err error) + func (w *Writer) BeginGroup(ctx context.Context, msg proto.Message) (id uint64, err error) + func (w *Writer) ChildObject(ctx context.Context, msg proto.Message, parentID uint64) error + func (w *Writer) EndGroup(ctx context.Context, id uint64) error + func (w *Writer) Object(ctx context.Context, msg proto.Message) error Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021