Documentation
¶
Index ¶
- Variables
- func MarshalEvent(event protosource.Event) ([]byte, error)
- func UnmarshalEvent(data []byte) (protosource.Event, error)
- type Decoder
- type Encoder
- type Serializer
- func (s *Serializer) MarshalEvent(event protosource.Event) (*recordv1.Record, error)
- func (s *Serializer) MarshalEventAsData(event protosource.Event) ([]byte, error)
- func (s *Serializer) UnmarshalEvent(record *recordv1.Record) (protosource.Event, error)
- func (s *Serializer) UnmarshalEventFromData(data []byte) (protosource.Event, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewSerializer, wire.Bind(new(protosource.Serializer), new(*Serializer)), )
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 Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) WriteBase64 ¶
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)
Click to show internal directories.
Click to hide internal directories.