avro

package
v6.3.1-wip-refactoring Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 6 Imported by: 0

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

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventWriter

func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error)

Types

type Event

type Event struct {
	Id string

	Start_ip Ip_address

	End_ip Ip_address
}

func DeserializeEvent

func DeserializeEvent(r io.Reader) (t Event, err error)

func DeserializeEventFromSchema

func DeserializeEventFromSchema(r io.Reader, schema string) (t Event, err error)

func (*Event) AppendArray

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

func (*Event) AppendMap

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

func (*Event) Clear

func (r *Event) Clear(i int)

func (*Event) Finalize

func (_ *Event) Finalize()

func (*Event) Get

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

func (Event) Schema

func (r Event) Schema() string

func (Event) SchemaName

func (r Event) SchemaName() string

func (Event) Serialize

func (r Event) Serialize(w io.Writer) error

func (*Event) SetBoolean

func (_ *Event) SetBoolean(v bool)

func (*Event) SetBytes

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

func (*Event) SetDefault

func (r *Event) SetDefault(i int)

func (*Event) SetDouble

func (_ *Event) SetDouble(v float64)

func (*Event) SetFloat

func (_ *Event) SetFloat(v float32)

func (*Event) SetInt

func (_ *Event) SetInt(v int32)

func (*Event) SetLong

func (_ *Event) SetLong(v int64)

func (*Event) SetString

func (_ *Event) SetString(v string)

func (*Event) SetUnionElem

func (_ *Event) SetUnionElem(v int64)

type EventReader

type EventReader struct {
	// contains filtered or unexported fields
}

container reader

func NewEventReader

func NewEventReader(r io.Reader) (*EventReader, error)

func (EventReader) Read

func (r EventReader) Read() (t Event, err error)

type Ip_address

type Ip_address [16]byte

func (*Ip_address) AppendArray

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

func (*Ip_address) AppendMap

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

func (*Ip_address) Clear

func (_ *Ip_address) Clear(i int)

func (*Ip_address) Finalize

func (_ *Ip_address) Finalize()

func (*Ip_address) Get

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

func (*Ip_address) SetBoolean

func (_ *Ip_address) SetBoolean(v bool)

func (*Ip_address) SetBytes

func (r *Ip_address) SetBytes(v []byte)

func (*Ip_address) SetDefault

func (_ *Ip_address) SetDefault(i int)

func (*Ip_address) SetDouble

func (_ *Ip_address) SetDouble(v float64)

func (*Ip_address) SetFloat

func (_ *Ip_address) SetFloat(v float32)

func (*Ip_address) SetInt

func (_ *Ip_address) SetInt(v int32)

func (*Ip_address) SetLong

func (_ *Ip_address) SetLong(v int64)

func (*Ip_address) SetString

func (_ *Ip_address) SetString(v string)

func (*Ip_address) SetUnionElem

func (_ *Ip_address) SetUnionElem(v int64)

type TopLevelUnion

type TopLevelUnion struct {
	Ip_address Ip_address

	Event Event

	UnionType TopLevelUnionTypeEnum
}

func (*TopLevelUnion) AppendArray

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

func (*TopLevelUnion) AppendMap

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

func (*TopLevelUnion) Clear

func (r *TopLevelUnion) Clear(i int)

func (*TopLevelUnion) Finalize

func (_ *TopLevelUnion) Finalize()

func (*TopLevelUnion) Get

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

func (*TopLevelUnion) SetBoolean

func (_ *TopLevelUnion) SetBoolean(v bool)

func (*TopLevelUnion) SetBytes

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

func (*TopLevelUnion) SetDefault

func (_ *TopLevelUnion) SetDefault(i int)

func (*TopLevelUnion) SetDouble

func (_ *TopLevelUnion) SetDouble(v float64)

func (*TopLevelUnion) SetFloat

func (_ *TopLevelUnion) SetFloat(v float32)

func (*TopLevelUnion) SetInt

func (_ *TopLevelUnion) SetInt(v int32)

func (*TopLevelUnion) SetLong

func (r *TopLevelUnion) SetLong(v int64)

func (*TopLevelUnion) SetString

func (_ *TopLevelUnion) SetString(v string)

type TopLevelUnionTypeEnum

type TopLevelUnionTypeEnum int
const (
	TopLevelUnionTypeEnumIp_address TopLevelUnionTypeEnum = 0

	TopLevelUnionTypeEnumEvent TopLevelUnionTypeEnum = 1
)

Jump to

Keyboard shortcuts

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