Documentation ¶
Index ¶
Constants ¶
View Source
const ComplexSchemaRaw = `` /* 2138-byte string literal not displayed */
View Source
const PrimitiveSchemaRaw = `` /* 370-byte string literal not displayed */
Variables ¶
View Source
var CombinedSchema = avro.MustParseSchema(CombinedSchemaRaw)
View Source
var CombinedSchemaRaw = `{ "type": "record", "namespace": "example.avro", "name": "CombinedEverything", "fields": [ { "name": "complex", "type": ["null", ` + ComplexSchemaRaw + `] }, { "name": "primitive", "type": ["null", ` + PrimitiveSchemaRaw + `] } ] }`
View Source
var ComplexEnumSymbols = []string{"A", "B", "C", "D"}
View Source
var ComplexSchema = avro.MustParseSchema(ComplexSchemaRaw)
Functions ¶
func NewComplexEnumField ¶
func NewComplexEnumField() *avro.GenericEnum
Types ¶
type Complex ¶
type Complex struct { StringArray []string LongArray []int64 EnumField *avro.GenericEnum MapOfInts map[string]int32 UnionField interface{} FixedField []byte RecordField *TestRecord MapOfRecord map[string]*TestRecord }
complex
Click to show internal directories.
Click to hide internal directories.