Documentation
¶
Index ¶
- Variables
- func DeserializeWithSchema[E any](schemas confluent.Client, deser Deserializer[E], payload []byte) (E, error)
- func EventTypeOf(event Event) string
- func SerializeWithSchema(client confluent.Client, event Event) ([]byte, error)
- func SerializeWithSchemaId(schemaId uint32, event Event) ([]byte, error)
- type Converter
- type ConverterOptions
- type Deserializer
- type Event
- type EventSource
- type SchemaCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPayloadToShort = errors.New("payload too short") ErrInvalidMagicByte = errors.New("invalid magic byte value") )
Functions ¶
func DeserializeWithSchema ¶ added in v2.6.5
func EventTypeOf ¶ added in v2.6.5
func SerializeWithSchema ¶ added in v2.6.5
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func NewConverter ¶
func NewConverter(registry *SchemaCache, options ConverterOptions) *Converter
func (*Converter) ConvertAvroToGo ¶ added in v2.2.55
type ConverterOptions ¶ added in v2.1.19
type Deserializer ¶ added in v2.6.5
type EventSource ¶
type SchemaCache ¶ added in v2.6.5
type SchemaCache struct {
ConfluentClient confluent.Client
// contains filtered or unexported fields
}
SchemaCache is a wrapper around a ConfluentClient that caches the schemas as parsed goavro.Codec instances.
Click to show internal directories.
Click to hide internal directories.