Documentation ¶
Overview ¶
Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
- SOURCE:
- union.avsc
Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
- SOURCE:
- union.avsc
Index ¶
- type PrimitiveUnionTestRecord
- func (_ *PrimitiveUnionTestRecord) AppendArray() types.Field
- func (_ *PrimitiveUnionTestRecord) AppendMap(key string) types.Field
- func (r *PrimitiveUnionTestRecord) Clear(i int)
- func (_ *PrimitiveUnionTestRecord) Finalize()
- func (r *PrimitiveUnionTestRecord) Get(i int) types.Field
- func (r PrimitiveUnionTestRecord) Schema() string
- func (r PrimitiveUnionTestRecord) SchemaName() string
- func (r PrimitiveUnionTestRecord) Serialize(w io.Writer) error
- func (_ *PrimitiveUnionTestRecord) SetBoolean(v bool)
- func (_ *PrimitiveUnionTestRecord) SetBytes(v []byte)
- func (r *PrimitiveUnionTestRecord) SetDefault(i int)
- func (_ *PrimitiveUnionTestRecord) SetDouble(v float64)
- func (_ *PrimitiveUnionTestRecord) SetFloat(v float32)
- func (_ *PrimitiveUnionTestRecord) SetInt(v int32)
- func (_ *PrimitiveUnionTestRecord) SetLong(v int64)
- func (_ *PrimitiveUnionTestRecord) SetString(v string)
- func (_ *PrimitiveUnionTestRecord) SetUnionElem(v int64)
- type UnionFieldUnion
- func (_ *UnionFieldUnion) AppendArray() types.Field
- func (_ *UnionFieldUnion) AppendMap(key string) types.Field
- func (r *UnionFieldUnion) Clear(i int)
- func (_ *UnionFieldUnion) Finalize()
- func (r *UnionFieldUnion) Get(i int) types.Field
- func (_ *UnionFieldUnion) SetBoolean(v bool)
- func (_ *UnionFieldUnion) SetBytes(v []byte)
- func (_ *UnionFieldUnion) SetDefault(i int)
- func (_ *UnionFieldUnion) SetDouble(v float64)
- func (_ *UnionFieldUnion) SetFloat(v float32)
- func (_ *UnionFieldUnion) SetInt(v int32)
- func (r *UnionFieldUnion) SetLong(v int64)
- func (_ *UnionFieldUnion) SetString(v string)
- type UnionFieldUnionTypeEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrimitiveUnionTestRecord ¶
type PrimitiveUnionTestRecord struct {
UnionField *UnionFieldUnion
}
func DeserializePrimitiveUnionTestRecord ¶
func DeserializePrimitiveUnionTestRecord(r io.Reader) (t PrimitiveUnionTestRecord, err error)
func DeserializePrimitiveUnionTestRecordFromSchema ¶
func DeserializePrimitiveUnionTestRecordFromSchema(r io.Reader, schema string) (t PrimitiveUnionTestRecord, err error)
func (*PrimitiveUnionTestRecord) AppendArray ¶
func (_ *PrimitiveUnionTestRecord) AppendArray() types.Field
func (*PrimitiveUnionTestRecord) AppendMap ¶
func (_ *PrimitiveUnionTestRecord) AppendMap(key string) types.Field
func (*PrimitiveUnionTestRecord) Clear ¶
func (r *PrimitiveUnionTestRecord) Clear(i int)
func (*PrimitiveUnionTestRecord) Finalize ¶
func (_ *PrimitiveUnionTestRecord) Finalize()
func (PrimitiveUnionTestRecord) Schema ¶
func (r PrimitiveUnionTestRecord) Schema() string
func (PrimitiveUnionTestRecord) SchemaName ¶
func (r PrimitiveUnionTestRecord) SchemaName() string
func (PrimitiveUnionTestRecord) Serialize ¶
func (r PrimitiveUnionTestRecord) Serialize(w io.Writer) error
func (*PrimitiveUnionTestRecord) SetBoolean ¶
func (_ *PrimitiveUnionTestRecord) SetBoolean(v bool)
func (*PrimitiveUnionTestRecord) SetBytes ¶
func (_ *PrimitiveUnionTestRecord) SetBytes(v []byte)
func (*PrimitiveUnionTestRecord) SetDefault ¶
func (r *PrimitiveUnionTestRecord) SetDefault(i int)
func (*PrimitiveUnionTestRecord) SetDouble ¶
func (_ *PrimitiveUnionTestRecord) SetDouble(v float64)
func (*PrimitiveUnionTestRecord) SetFloat ¶
func (_ *PrimitiveUnionTestRecord) SetFloat(v float32)
func (*PrimitiveUnionTestRecord) SetInt ¶
func (_ *PrimitiveUnionTestRecord) SetInt(v int32)
func (*PrimitiveUnionTestRecord) SetLong ¶
func (_ *PrimitiveUnionTestRecord) SetLong(v int64)
func (*PrimitiveUnionTestRecord) SetString ¶
func (_ *PrimitiveUnionTestRecord) SetString(v string)
func (*PrimitiveUnionTestRecord) SetUnionElem ¶
func (_ *PrimitiveUnionTestRecord) SetUnionElem(v int64)
type UnionFieldUnion ¶
type UnionFieldUnion struct { Int int32 Long int64 Float float32 Double float64 String string Bool bool UnionType UnionFieldUnionTypeEnum }
func (*UnionFieldUnion) AppendArray ¶
func (_ *UnionFieldUnion) AppendArray() types.Field
func (*UnionFieldUnion) Clear ¶
func (r *UnionFieldUnion) Clear(i int)
func (*UnionFieldUnion) Finalize ¶
func (_ *UnionFieldUnion) Finalize()
func (*UnionFieldUnion) SetBoolean ¶
func (_ *UnionFieldUnion) SetBoolean(v bool)
func (*UnionFieldUnion) SetBytes ¶
func (_ *UnionFieldUnion) SetBytes(v []byte)
func (*UnionFieldUnion) SetDefault ¶
func (_ *UnionFieldUnion) SetDefault(i int)
func (*UnionFieldUnion) SetDouble ¶
func (_ *UnionFieldUnion) SetDouble(v float64)
func (*UnionFieldUnion) SetFloat ¶
func (_ *UnionFieldUnion) SetFloat(v float32)
func (*UnionFieldUnion) SetInt ¶
func (_ *UnionFieldUnion) SetInt(v int32)
func (*UnionFieldUnion) SetLong ¶
func (r *UnionFieldUnion) SetLong(v int64)
func (*UnionFieldUnion) SetString ¶
func (_ *UnionFieldUnion) SetString(v string)
type UnionFieldUnionTypeEnum ¶
type UnionFieldUnionTypeEnum int
const ( UnionFieldUnionTypeEnumInt UnionFieldUnionTypeEnum = 0 UnionFieldUnionTypeEnumLong UnionFieldUnionTypeEnum = 1 UnionFieldUnionTypeEnumFloat UnionFieldUnionTypeEnum = 2 UnionFieldUnionTypeEnumDouble UnionFieldUnionTypeEnum = 3 UnionFieldUnionTypeEnumString UnionFieldUnionTypeEnum = 4 UnionFieldUnionTypeEnumBool UnionFieldUnionTypeEnum = 5 )
Click to show internal directories.
Click to hide internal directories.