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: 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

View Source
const EventAvroCRC64Fingerprint = "\xebZ\xc0m\xf9OV\x97"

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) (*Event, error)

func DeserializeEventFromSchema

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

func NewEvent

func NewEvent() *Event

func (*Event) AppendArray

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

func (*Event) AppendMap

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

func (*Event) AvroCRC64Fingerprint added in v6.5.0

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

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() (*Event, error)

type Ip_address

type Ip_address Ip_addressWrapper

type Ip_addressWrapper

type Ip_addressWrapper [16]byte

func (*Ip_addressWrapper) AppendArray

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

func (*Ip_addressWrapper) AppendMap

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

func (*Ip_addressWrapper) Finalize

func (_ *Ip_addressWrapper) Finalize()

func (*Ip_addressWrapper) Get

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

func (*Ip_addressWrapper) SetBoolean

func (_ *Ip_addressWrapper) SetBoolean(v bool)

func (*Ip_addressWrapper) SetBytes

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

func (*Ip_addressWrapper) SetDefault

func (_ *Ip_addressWrapper) SetDefault(i int)

func (*Ip_addressWrapper) SetDouble

func (_ *Ip_addressWrapper) SetDouble(v float64)

func (*Ip_addressWrapper) SetFloat

func (_ *Ip_addressWrapper) SetFloat(v float32)

func (*Ip_addressWrapper) SetInt

func (_ *Ip_addressWrapper) SetInt(v int32)

func (*Ip_addressWrapper) SetLong

func (_ *Ip_addressWrapper) SetLong(v int64)

func (*Ip_addressWrapper) SetString

func (_ *Ip_addressWrapper) SetString(v string)

func (*Ip_addressWrapper) SetUnionElem

func (_ *Ip_addressWrapper) SetUnionElem(v int64)

type UnionIp_addressEvent

type UnionIp_addressEvent struct {
	Ip_address Ip_address

	Event *Event

	UnionType UnionIp_addressEventTypeEnum
}

func NewUnionIp_addressEvent

func NewUnionIp_addressEvent() *UnionIp_addressEvent

func (*UnionIp_addressEvent) AppendArray

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

func (*UnionIp_addressEvent) AppendMap

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

func (*UnionIp_addressEvent) Finalize

func (_ *UnionIp_addressEvent) Finalize()

func (*UnionIp_addressEvent) Get

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

func (*UnionIp_addressEvent) SetBoolean

func (_ *UnionIp_addressEvent) SetBoolean(v bool)

func (*UnionIp_addressEvent) SetBytes

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

func (*UnionIp_addressEvent) SetDefault

func (_ *UnionIp_addressEvent) SetDefault(i int)

func (*UnionIp_addressEvent) SetDouble

func (_ *UnionIp_addressEvent) SetDouble(v float64)

func (*UnionIp_addressEvent) SetFloat

func (_ *UnionIp_addressEvent) SetFloat(v float32)

func (*UnionIp_addressEvent) SetInt

func (_ *UnionIp_addressEvent) SetInt(v int32)

func (*UnionIp_addressEvent) SetLong

func (r *UnionIp_addressEvent) SetLong(v int64)

func (*UnionIp_addressEvent) SetString

func (_ *UnionIp_addressEvent) SetString(v string)

type UnionIp_addressEventTypeEnum

type UnionIp_addressEventTypeEnum int
const (
	UnionIp_addressEventTypeEnumIp_address UnionIp_addressEventTypeEnum = 0

	UnionIp_addressEventTypeEnumEvent UnionIp_addressEventTypeEnum = 1
)

Jump to

Keyboard shortcuts

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