protobinaryserializer

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 11 Imported by: 0

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