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) HintSize(int)
- func (b Boolean) NullField(int)
- 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 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) HintSize(int)
- func (b Double) NullField(int)
- 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) HintSize(int)
- func (b Float) NullField(int)
- 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) HintSize(int)
- func (b Int) NullField(int)
- 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) HintSize(int)
- func (b Long) NullField(int)
- 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) HintSize(int)
- func (b *NullVal) NullField(int)
- 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 Record
- func (b Record) AppendArray() Field
- func (b Record) AppendMap(key string) Field
- func (b Record) Finalize()
- func (b Record) Get(i int) Field
- func (b Record) HintSize(v int)
- func (b Record) NullField(v int)
- func (b Record) SetBoolean(v bool)
- func (b Record) SetBytes(v []byte)
- func (b Record) SetDefault(i int)
- func (b Record) SetDouble(v float64)
- func (b Record) SetFloat(v float32)
- func (b Record) SetInt(v int32)
- func (b Record) SetLong(v int64)
- func (b Record) SetString(v string)
- 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) HintSize(int)
- func (b String) NullField(int)
- 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 struct {
Target *bool
}
func (Boolean) AppendArray ¶
func (Boolean) SetBoolean ¶
func (Boolean) SetDefault ¶
func (Boolean) SetUnionElem ¶
type Double ¶
type Double struct {
Target *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 // Set the target field to null NullField(t int) // Hint at the final size of a map or array, for performance HintSize(s int) // 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 struct {
Target *float32
}
func (Float) AppendArray ¶
func (Float) SetBoolean ¶
func (Float) SetDefault ¶
func (Float) SetUnionElem ¶
type Int ¶
type Int struct {
Target *int32
}
func (Int) AppendArray ¶
func (Int) SetBoolean ¶
func (Int) SetDefault ¶
func (Int) SetUnionElem ¶
type Long ¶
type Long struct {
Target *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 Record ¶
type Record struct {
Target Field
}
func (Record) AppendArray ¶
func (Record) SetBoolean ¶
func (Record) SetDefault ¶
type String ¶
type String struct {
Target *string
}
func (String) AppendArray ¶
func (String) SetBoolean ¶
func (String) SetDefault ¶
func (String) SetUnionElem ¶
Click to show internal directories.
Click to hide internal directories.