avrotypemap

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package avrotypemap is an internal implementation detail of the avrogo program and should not be used externally. The API has no guarantees at all.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvroTypeMap

func AvroTypeMap(t reflect.Type) (map[string]GoType, error)

AvroTypeMap returns a value that maps the names used by the Avro schema implied by t to the Go types that are used to implement them.

Types

type ExternalTypeResult

type ExternalTypeResult struct {
	// Error is non-empty when there was a problem getting
	// info with the type.
	Error string
	// Schema holds the Avro schema for the type.
	Schema string
	// Map maps from Avro fully qualified names used
	// in the types to Go types.
	Map map[string]GoType
}

ExternalTypeResult is used as a JSON-marshaled value in the result printed by the program generated as part of a avrogo run to find information about external Avro types.

type GoType

type GoType struct {
	PkgPath string
	Name    string
}

func (GoType) String

func (t GoType) String() string

Jump to

Keyboard shortcuts

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