protobinaryserializer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet provides a protobinaryserializer and binds it to protosource.Serializer.

Functions

func MarshalEvent

func MarshalEvent(event protosource.Event) ([]byte, error)

func UnmarshalEvent

func UnmarshalEvent(data []byte) (protosource.Event, error)

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) ReadEvent

func (d *Decoder) ReadEvent() (protosource.Event, error)

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (*Encoder) WriteBase64

func (e *Encoder) WriteBase64(b64 string) (int, error)

This is a convenience method for working with dynamo data without deserializing.

func (*Encoder) WriteEvent

func (e *Encoder) WriteEvent(event protosource.Event) (int, error)

type Serializer

type Serializer struct{}

func NewSerializer

func NewSerializer() *Serializer

func (*Serializer) MarshalEvent

func (s *Serializer) MarshalEvent(event protosource.Event) (*recordv1.Record, error)

func (*Serializer) MarshalEventAsData

func (s *Serializer) MarshalEventAsData(event protosource.Event) ([]byte, error)

func (*Serializer) UnmarshalEvent

func (s *Serializer) UnmarshalEvent(record *recordv1.Record) (protosource.Event, error)

func (*Serializer) UnmarshalEventFromData

func (s *Serializer) UnmarshalEventFromData(data []byte) (protosource.Event, error)

Jump to

Keyboard shortcuts

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