avro

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.

  • SOURCES:
  • child.avsc
  • parent.avsc

Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.

  • SOURCES:
  • child.avsc
  • parent.avsc

Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.

  • SOURCES:
  • child.avsc
  • parent.avsc

Index

Constants

View Source
const ChildAvroCRC64Fingerprint = "\x9c\xc0\xb2WF֤\xff"
View Source
const ParentAvroCRC64Fingerprint = "T\x88\xc0l-\xc3?\xca"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayChildWrapper

type ArrayChildWrapper []*Child

func (*ArrayChildWrapper) AppendArray

func (r *ArrayChildWrapper) AppendArray() types.Field

func (*ArrayChildWrapper) AppendMap

func (_ *ArrayChildWrapper) AppendMap(key string) types.Field

func (*ArrayChildWrapper) Finalize

func (_ *ArrayChildWrapper) Finalize()

func (*ArrayChildWrapper) Get

func (_ *ArrayChildWrapper) Get(i int) types.Field

func (*ArrayChildWrapper) SetBoolean

func (_ *ArrayChildWrapper) SetBoolean(v bool)

func (*ArrayChildWrapper) SetBytes

func (_ *ArrayChildWrapper) SetBytes(v []byte)

func (*ArrayChildWrapper) SetDefault

func (_ *ArrayChildWrapper) SetDefault(i int)

func (*ArrayChildWrapper) SetDouble

func (_ *ArrayChildWrapper) SetDouble(v float64)

func (*ArrayChildWrapper) SetFloat

func (_ *ArrayChildWrapper) SetFloat(v float32)

func (*ArrayChildWrapper) SetInt

func (_ *ArrayChildWrapper) SetInt(v int32)

func (*ArrayChildWrapper) SetLong

func (_ *ArrayChildWrapper) SetLong(v int64)

func (*ArrayChildWrapper) SetString

func (_ *ArrayChildWrapper) SetString(v string)

func (*ArrayChildWrapper) SetUnionElem

func (_ *ArrayChildWrapper) SetUnionElem(v int64)

type Child

type Child struct {
	Name string
}

func DeserializeChild

func DeserializeChild(r io.Reader) (*Child, error)

func DeserializeChildFromSchema

func DeserializeChildFromSchema(r io.Reader, schema string) (*Child, error)

func NewChild

func NewChild() *Child

func (*Child) AppendArray

func (_ *Child) AppendArray() types.Field

func (*Child) AppendMap

func (_ *Child) AppendMap(key string) types.Field

func (*Child) AvroCRC64Fingerprint added in v6.5.0

func (_ *Child) AvroCRC64Fingerprint() []byte

func (*Child) Finalize

func (_ *Child) Finalize()

func (*Child) Get

func (r *Child) Get(i int) types.Field

func (*Child) Schema

func (r *Child) Schema() string

func (*Child) SchemaName

func (r *Child) SchemaName() string

func (*Child) Serialize

func (r *Child) Serialize(w io.Writer) error

func (*Child) SetBoolean

func (_ *Child) SetBoolean(v bool)

func (*Child) SetBytes

func (_ *Child) SetBytes(v []byte)

func (*Child) SetDefault

func (r *Child) SetDefault(i int)

func (*Child) SetDouble

func (_ *Child) SetDouble(v float64)

func (*Child) SetFloat

func (_ *Child) SetFloat(v float32)

func (*Child) SetInt

func (_ *Child) SetInt(v int32)

func (*Child) SetLong

func (_ *Child) SetLong(v int64)

func (*Child) SetString

func (_ *Child) SetString(v string)

func (*Child) SetUnionElem

func (_ *Child) SetUnionElem(v int64)

type Parent

type Parent struct {
	Children []*Child
}

func DeserializeParent

func DeserializeParent(r io.Reader) (*Parent, error)

func DeserializeParentFromSchema

func DeserializeParentFromSchema(r io.Reader, schema string) (*Parent, error)

func NewParent

func NewParent() *Parent

func (*Parent) AppendArray

func (_ *Parent) AppendArray() types.Field

func (*Parent) AppendMap

func (_ *Parent) AppendMap(key string) types.Field

func (*Parent) AvroCRC64Fingerprint added in v6.5.0

func (_ *Parent) AvroCRC64Fingerprint() []byte

func (*Parent) Finalize

func (_ *Parent) Finalize()

func (*Parent) Get

func (r *Parent) Get(i int) types.Field

func (*Parent) Schema

func (r *Parent) Schema() string

func (*Parent) SchemaName

func (r *Parent) SchemaName() string

func (*Parent) Serialize

func (r *Parent) Serialize(w io.Writer) error

func (*Parent) SetBoolean

func (_ *Parent) SetBoolean(v bool)

func (*Parent) SetBytes

func (_ *Parent) SetBytes(v []byte)

func (*Parent) SetDefault

func (r *Parent) SetDefault(i int)

func (*Parent) SetDouble

func (_ *Parent) SetDouble(v float64)

func (*Parent) SetFloat

func (_ *Parent) SetFloat(v float32)

func (*Parent) SetInt

func (_ *Parent) SetInt(v int32)

func (*Parent) SetLong

func (_ *Parent) SetLong(v int64)

func (*Parent) SetString

func (_ *Parent) SetString(v string)

func (*Parent) SetUnionElem

func (_ *Parent) SetUnionElem(v int64)

Jump to

Keyboard shortcuts

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