Documentation ¶
Overview ¶
Wrappers for Avro primitive types implementing the methods required by GADGT
Index ¶
- type Boolean
- func (b *Boolean) AppendArray() Field
- func (b *Boolean) AppendMap(key string) Field
- func (b *Boolean) Finalize()
- func (b *Boolean) Get(i int) Field
- func (b *Boolean) SetBoolean(v bool)
- func (b *Boolean) SetBytes(v []byte)
- func (b *Boolean) SetDefault(i int)
- func (b *Boolean) SetDouble(v float64)
- func (b *Boolean) SetFloat(v float32)
- func (b *Boolean) SetInt(v int32)
- func (b *Boolean) SetLong(v int64)
- func (b *Boolean) SetString(v string)
- func (b *Boolean) SetUnionElem(v int64)
- type Bytes
- func (b *Bytes) AppendArray() Field
- func (b *Bytes) AppendMap(key string) Field
- func (b *Bytes) Finalize()
- func (b *Bytes) Get(i int) Field
- func (b *Bytes) SetBoolean(v bool)
- func (b *Bytes) SetBytes(v []byte)
- func (b *Bytes) SetDefault(i int)
- func (b *Bytes) SetDouble(v float64)
- func (b *Bytes) SetFloat(v float32)
- func (b *Bytes) SetInt(v int32)
- func (b *Bytes) SetLong(v int64)
- func (b *Bytes) SetString(v string)
- func (b *Bytes) SetUnionElem(v int64)
- type Double
- func (b *Double) AppendArray() Field
- func (b *Double) AppendMap(key string) Field
- func (b *Double) Finalize()
- func (b *Double) Get(i int) Field
- func (b *Double) SetBoolean(v bool)
- func (b *Double) SetBytes(v []byte)
- func (b *Double) SetDefault(i int)
- func (b *Double) SetDouble(v float64)
- func (b *Double) SetFloat(v float32)
- func (b *Double) SetInt(v int32)
- func (b *Double) SetLong(v int64)
- func (b *Double) SetString(v string)
- func (b *Double) SetUnionElem(v int64)
- type Field
- type Float
- func (b *Float) AppendArray() Field
- func (b *Float) AppendMap(key string) Field
- func (b *Float) Finalize()
- func (b *Float) Get(i int) Field
- func (b *Float) SetBoolean(v bool)
- func (b *Float) SetBytes(v []byte)
- func (b *Float) SetDefault(i int)
- func (b *Float) SetDouble(v float64)
- func (b *Float) SetFloat(v float32)
- func (b *Float) SetInt(v int32)
- func (b *Float) SetLong(v int64)
- func (b *Float) SetString(v string)
- func (b *Float) SetUnionElem(v int64)
- type Int
- func (b *Int) AppendArray() Field
- func (b *Int) AppendMap(key string) Field
- func (b *Int) Finalize()
- func (b *Int) Get(i int) Field
- func (b *Int) SetBoolean(v bool)
- func (b *Int) SetBytes(v []byte)
- func (b *Int) SetDefault(i int)
- func (b *Int) SetDouble(v float64)
- func (b *Int) SetFloat(v float32)
- func (b *Int) SetInt(v int32)
- func (b *Int) SetLong(v int64)
- func (b *Int) SetString(v string)
- func (b *Int) SetUnionElem(v int64)
- type Long
- func (b *Long) AppendArray() Field
- func (b *Long) AppendMap(key string) Field
- func (b *Long) Finalize()
- func (b *Long) Get(i int) Field
- func (b *Long) SetBoolean(v bool)
- func (b *Long) SetBytes(v []byte)
- func (b *Long) SetDefault(i int)
- func (b *Long) SetDouble(v float64)
- func (b *Long) SetFloat(v float32)
- func (b *Long) SetInt(v int32)
- func (b *Long) SetLong(v int64)
- func (b *Long) SetString(v string)
- func (b *Long) SetUnionElem(v int64)
- type NullVal
- func (b *NullVal) AppendArray() Field
- func (b *NullVal) AppendMap(key string) Field
- func (b *NullVal) Finalize()
- func (b *NullVal) Get(i int) Field
- func (b *NullVal) SetBoolean(v bool)
- func (b *NullVal) SetBytes(v []byte)
- func (b *NullVal) SetDefault(i int)
- func (b *NullVal) SetDouble(v float64)
- func (b *NullVal) SetFloat(v float32)
- func (b *NullVal) SetInt(v int32)
- func (b *NullVal) SetLong(v int64)
- func (b *NullVal) SetString(v string)
- func (b *NullVal) SetUnionElem(v int64)
- type String
- func (b *String) AppendArray() Field
- func (b *String) AppendMap(key string) Field
- func (b *String) Finalize()
- func (b *String) Get(i int) Field
- func (b *String) SetBoolean(v bool)
- func (b *String) SetBytes(v []byte)
- func (b *String) SetDefault(i int)
- func (b *String) SetDouble(v float64)
- func (b *String) SetFloat(v float32)
- func (b *String) SetInt(v int32)
- func (b *String) SetLong(v int64)
- func (b *String) SetString(v string)
- func (b *String) SetUnionElem(v int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean bool
func (*Boolean) AppendArray ¶
func (*Boolean) SetBoolean ¶
func (*Boolean) SetDefault ¶
func (*Boolean) SetUnionElem ¶
type Bytes ¶
type Bytes []byte
func (*Bytes) AppendArray ¶
func (*Bytes) SetBoolean ¶
func (*Bytes) SetDefault ¶
func (*Bytes) SetUnionElem ¶
type Double ¶
type Double float64
func (*Double) AppendArray ¶
func (*Double) SetBoolean ¶
func (*Double) SetDefault ¶
func (*Double) SetUnionElem ¶
type Field ¶
type Field interface { // Assign a primitive field SetBoolean(v bool) SetInt(v int32) SetLong(v int64) SetFloat(v float32) SetDouble(v float64) SetBytes(v []byte) SetString(v string) // Get a nested field Get(i int) Field // Set the default value for a given field SetDefault(i int) // Append a new value to a map or array and enter it AppendMap(key string) Field AppendArray() Field // Finalize a field if necessary Finalize() }
The interface neeed by GADGT to enter and set fields on a type Most types only need to implement a subset
type Float ¶
type Float float32
func (*Float) AppendArray ¶
func (*Float) SetBoolean ¶
func (*Float) SetDefault ¶
func (*Float) SetUnionElem ¶
type Int ¶
type Int int32
func (*Int) AppendArray ¶
func (*Int) SetBoolean ¶
func (*Int) SetDefault ¶
func (*Int) SetUnionElem ¶
type Long ¶
type Long int64
func (*Long) AppendArray ¶
func (*Long) SetBoolean ¶
func (*Long) SetDefault ¶
func (*Long) SetUnionElem ¶
type NullVal ¶
type NullVal struct{}
func (*NullVal) AppendArray ¶
func (*NullVal) SetBoolean ¶
func (*NullVal) SetDefault ¶
func (*NullVal) SetUnionElem ¶
type String ¶
type String string
func (*String) AppendArray ¶
func (*String) SetBoolean ¶
func (*String) SetDefault ¶
func (*String) SetUnionElem ¶
Click to show internal directories.
Click to hide internal directories.