avro

package
v2.2.30 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

func NewConverter

func NewConverter(registry *SchemaRegistry, options ConverterOptions) *Converter

func (*Converter) Parse

func (c *Converter) Parse(data []byte) (map[string]interface{}, *EventSource, error)

type ConverterOptions added in v2.1.19

type ConverterOptions struct {
	AvroNamespace string // prefix for namespace prefix which will be used to identify self defined records
	ToLowerCase   bool   // map all field names to lower case
}

type EventSource

type EventSource struct {
	Record interface{}
	Schema string
}

type SchemaRegistry

type SchemaRegistry struct {
	Consul          schema.Registry
	ConfluentClient *schemaregistry.Client
	// contains filtered or unexported fields
}

func (*SchemaRegistry) Get

func (r *SchemaRegistry) Get(key string) (*goavro.Codec, error)

Jump to

Keyboard shortcuts

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