Documentation
¶
Index ¶
Constants ¶
View Source
const ( ARRAY = "array" BOOLEAN = "boolean" BYTES = "bytes" DOUBLE = "double" ENUM = "enum" FIXED = "fixed" FLOAT = "float" INT = "int" LONG = "long" MAP = "map" NULL = "null" RECORD = "record" STRING = "string" UNION = "union" // avro spec doesn't treat unions like this, but makes it easier for us )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Name string
Type SimplifiedSchema
}
type SimplifiedSchema ¶
type SimplifiedSchema struct {
Type string `json:"type"`
Name string `json:"name"`
LogicalType string `json:"logicalType,omitempty"`
Size int `json:"size,omitempty"`
Scale int `json:"scale,omitempty"`
Precision int `json:"precision,omitempty"`
Items *SimplifiedSchema `json:"items,omitempty"`
Fields []Field `json:"fields,omitempty"`
Symbols []string `json:"symbols,omitempty"`
Values *SimplifiedSchema `json:"values,omitempty"`
UnionTypes []SimplifiedSchema
}
func From ¶
func From(schema any) (SimplifiedSchema, error)
func FromSchemaString ¶
func FromSchemaString(schemaString string) (SimplifiedSchema, error)
Click to show internal directories.
Click to hide internal directories.