Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Field ¶
type Field struct { Name string `json:"name,omitempty"` Doc string `json:"doc,omitempty"` Default interface{} `json:"default"` Type gv.Schema `json:"type,omitempty"` Properties map[string]string }
Field represents a schema field for Avro record.
func (*Field) MarshalJSON ¶
MarshalJSON serializes the given schema field as JSON.
type Record ¶
type Record struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` Doc string `json:"doc,omitempty"` Aliases []string `json:"aliases,omitempty"` Properties map[string]interface{} `json:"meta, omitempty"` Fields []*Field `json:"fields"` }
Record implements Schema and represents Avro record type.
func (*Record) MarshalJSON ¶
MarshalJSON serializes the given schema as JSON.
Click to show internal directories.
Click to hide internal directories.