avro

package
v9.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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

  • SOURCE:
  • evolution.avsc

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

  • SOURCE:
  • evolution.avsc

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

  • SOURCE:
  • evolution.avsc

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

  • SOURCE:
  • evolution.avsc

Index

Constants

View Source
const EventAvroCRC64Fingerprint = "W\xbc\xe5D\xb1l>j"

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 {
	// Unique ID for this event.
	Id string `json:"id"`
	// Start IP of this observation's IP range.
	Start_ip IPAddress `json:"start_ip"`
	// End IP of this observation's IP range.
	End_ip IPAddress `json:"end_ip"`
}

The test record

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

func (_ Event) AvroCRC64Fingerprint() []byte

func (Event) Finalize

func (_ Event) Finalize()

func (*Event) Get

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

func (Event) MarshalJSON

func (r Event) MarshalJSON() ([]byte, error)

func (*Event) NullField

func (r *Event) NullField(i int)

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)

func (*Event) UnmarshalJSON

func (r *Event) UnmarshalJSON(data []byte) error

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 IPAddress

type IPAddress [16]byte

func (IPAddress) MarshalJSON

func (b IPAddress) MarshalJSON() ([]byte, error)

func (*IPAddress) UnmarshalJSON

func (b *IPAddress) UnmarshalJSON(data []byte) error

type IPAddressWrapper

type IPAddressWrapper struct {
	Target *IPAddress
}

func (*IPAddressWrapper) AppendArray

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

func (*IPAddressWrapper) AppendMap

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

func (*IPAddressWrapper) Finalize

func (_ *IPAddressWrapper) Finalize()

func (*IPAddressWrapper) Get

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

func (*IPAddressWrapper) NullField

func (_ *IPAddressWrapper) NullField(int)

func (*IPAddressWrapper) SetBoolean

func (_ *IPAddressWrapper) SetBoolean(v bool)

func (*IPAddressWrapper) SetBytes

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

func (*IPAddressWrapper) SetDefault

func (_ *IPAddressWrapper) SetDefault(i int)

func (*IPAddressWrapper) SetDouble

func (_ *IPAddressWrapper) SetDouble(v float64)

func (*IPAddressWrapper) SetFloat

func (_ *IPAddressWrapper) SetFloat(v float32)

func (*IPAddressWrapper) SetInt

func (_ *IPAddressWrapper) SetInt(v int32)

func (*IPAddressWrapper) SetLong

func (_ *IPAddressWrapper) SetLong(v int64)

func (*IPAddressWrapper) SetString

func (_ *IPAddressWrapper) SetString(v string)

func (*IPAddressWrapper) SetUnionElem

func (_ *IPAddressWrapper) SetUnionElem(v int64)

type UnionIPAddressEvent

type UnionIPAddressEvent struct {
	IPAddress IPAddress
	Event     Event
	UnionType UnionIPAddressEventTypeEnum
}

func DeserializeUnionIPAddressEvent

func DeserializeUnionIPAddressEvent(r io.Reader) (UnionIPAddressEvent, error)

func DeserializeUnionIPAddressEventFromSchema

func DeserializeUnionIPAddressEventFromSchema(r io.Reader, schema string) (UnionIPAddressEvent, error)

func NewUnionIPAddressEvent

func NewUnionIPAddressEvent() UnionIPAddressEvent

func (UnionIPAddressEvent) AppendArray

func (_ UnionIPAddressEvent) AppendArray() types.Field

func (UnionIPAddressEvent) AppendMap

func (_ UnionIPAddressEvent) AppendMap(key string) types.Field

func (UnionIPAddressEvent) Finalize

func (_ UnionIPAddressEvent) Finalize()

func (*UnionIPAddressEvent) Get

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

func (UnionIPAddressEvent) MarshalJSON

func (r UnionIPAddressEvent) MarshalJSON() ([]byte, error)

func (UnionIPAddressEvent) NullField

func (_ UnionIPAddressEvent) NullField(i int)

func (UnionIPAddressEvent) Schema

func (r UnionIPAddressEvent) Schema() string

func (UnionIPAddressEvent) Serialize

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

func (UnionIPAddressEvent) SetBoolean

func (_ UnionIPAddressEvent) SetBoolean(v bool)

func (UnionIPAddressEvent) SetBytes

func (_ UnionIPAddressEvent) SetBytes(v []byte)

func (UnionIPAddressEvent) SetDefault

func (_ UnionIPAddressEvent) SetDefault(i int)

func (UnionIPAddressEvent) SetDouble

func (_ UnionIPAddressEvent) SetDouble(v float64)

func (UnionIPAddressEvent) SetFloat

func (_ UnionIPAddressEvent) SetFloat(v float32)

func (UnionIPAddressEvent) SetInt

func (_ UnionIPAddressEvent) SetInt(v int32)

func (*UnionIPAddressEvent) SetLong

func (r *UnionIPAddressEvent) SetLong(v int64)

func (UnionIPAddressEvent) SetString

func (_ UnionIPAddressEvent) SetString(v string)

func (*UnionIPAddressEvent) UnmarshalJSON

func (r *UnionIPAddressEvent) UnmarshalJSON(data []byte) error

type UnionIPAddressEventTypeEnum

type UnionIPAddressEventTypeEnum int
const (
	UnionIPAddressEventTypeEnumIPAddress UnionIPAddressEventTypeEnum = 0

	UnionIPAddressEventTypeEnumEvent UnionIPAddressEventTypeEnum = 1
)

Jump to

Keyboard shortcuts

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