avro

package
v2.2.113 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 12 Imported by: 1 module, 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

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) ConvertAvroToGo added in v2.2.55

func (c *Converter) ConvertAvroToGo(input interface{}) interface{}

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