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
- func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error)
- type Event
- func (_ *Event) AppendArray() types.Field
- func (_ *Event) AppendMap(key string) types.Field
- func (_ *Event) AvroCRC64Fingerprint() []byte
- func (_ *Event) Finalize()
- func (r *Event) Get(i int) types.Field
- func (r *Event) Schema() string
- func (r *Event) SchemaName() string
- func (r *Event) Serialize(w io.Writer) error
- func (_ *Event) SetBoolean(v bool)
- func (_ *Event) SetBytes(v []byte)
- func (r *Event) SetDefault(i int)
- func (_ *Event) SetDouble(v float64)
- func (_ *Event) SetFloat(v float32)
- func (_ *Event) SetInt(v int32)
- func (_ *Event) SetLong(v int64)
- func (_ *Event) SetString(v string)
- func (_ *Event) SetUnionElem(v int64)
- type EventReader
- type Ip_address
- type Ip_addressWrapper
- func (_ *Ip_addressWrapper) AppendArray() types.Field
- func (_ *Ip_addressWrapper) AppendMap(key string) types.Field
- func (_ *Ip_addressWrapper) Finalize()
- func (_ *Ip_addressWrapper) Get(i int) types.Field
- func (_ *Ip_addressWrapper) SetBoolean(v bool)
- func (r *Ip_addressWrapper) SetBytes(v []byte)
- func (_ *Ip_addressWrapper) SetDefault(i int)
- func (_ *Ip_addressWrapper) SetDouble(v float64)
- func (_ *Ip_addressWrapper) SetFloat(v float32)
- func (_ *Ip_addressWrapper) SetInt(v int32)
- func (_ *Ip_addressWrapper) SetLong(v int64)
- func (_ *Ip_addressWrapper) SetString(v string)
- func (_ *Ip_addressWrapper) SetUnionElem(v int64)
- type TopLevelUnion
- func (_ *TopLevelUnion) AppendArray() types.Field
- func (_ *TopLevelUnion) AppendMap(key string) types.Field
- func (_ *TopLevelUnion) Finalize()
- func (r *TopLevelUnion) Get(i int) types.Field
- func (_ *TopLevelUnion) SetBoolean(v bool)
- func (_ *TopLevelUnion) SetBytes(v []byte)
- func (_ *TopLevelUnion) SetDefault(i int)
- func (_ *TopLevelUnion) SetDouble(v float64)
- func (_ *TopLevelUnion) SetFloat(v float32)
- func (_ *TopLevelUnion) SetInt(v int32)
- func (r *TopLevelUnion) SetLong(v int64)
- func (_ *TopLevelUnion) SetString(v string)
- type TopLevelUnionTypeEnum
Constants ¶
View Source
const EventAvroCRC64Fingerprint = "\xebZ\xc0m\xf9OV\x97"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { Id string Start_ip Ip_address End_ip Ip_address }
func (*Event) AppendArray ¶
func (*Event) AvroCRC64Fingerprint ¶ added in v6.5.0
func (*Event) SchemaName ¶
func (*Event) SetBoolean ¶
func (*Event) SetDefault ¶
func (*Event) SetUnionElem ¶
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) Finalize ¶
func (_ *Ip_addressWrapper) Finalize()
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 TopLevelUnion ¶
type TopLevelUnion struct { Ip_address Ip_address Event *Event UnionType TopLevelUnionTypeEnum }
func NewTopLevelUnion ¶
func NewTopLevelUnion() *TopLevelUnion
func (*TopLevelUnion) AppendArray ¶
func (_ *TopLevelUnion) AppendArray() types.Field
func (*TopLevelUnion) Finalize ¶
func (_ *TopLevelUnion) Finalize()
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 )
Click to show internal directories.
Click to hide internal directories.