Documentation ¶
Overview ¶
Code generated by Skaidus. DO NOT EDIT.
- SOURCE:
- superhero.avsc
Code generated by Skaidus. DO NOT EDIT.
- SOURCE:
- superhero.avsc
Code generated by Skaidus. DO NOT EDIT.
- SOURCE:
- superhero.avsc
Index ¶
- Constants
- type ArraySuperpowerWrapper
- func (r ArraySuperpowerWrapper) AppendArray() types.Field
- func (_ ArraySuperpowerWrapper) AppendMap(key string) types.Field
- func (_ ArraySuperpowerWrapper) Finalize()
- func (_ ArraySuperpowerWrapper) Get(i int) types.Field
- func (r ArraySuperpowerWrapper) HintSize(s int)
- func (r ArraySuperpowerWrapper) NullField(i int)
- func (_ ArraySuperpowerWrapper) SetBoolean(v bool)
- func (_ ArraySuperpowerWrapper) SetBytes(v []byte)
- func (_ ArraySuperpowerWrapper) SetDefault(i int)
- func (_ ArraySuperpowerWrapper) SetDouble(v float64)
- func (_ ArraySuperpowerWrapper) SetFloat(v float32)
- func (_ ArraySuperpowerWrapper) SetInt(v int32)
- func (_ ArraySuperpowerWrapper) SetLong(v int64)
- func (_ ArraySuperpowerWrapper) SetString(v string)
- func (_ ArraySuperpowerWrapper) SetUnionElem(v int64)
- type Superhero
- func (_ Superhero) AppendArray() types.Field
- func (_ Superhero) AppendMap(key string) types.Field
- func (_ Superhero) AvroCRC64Fingerprint() []byte
- func (_ Superhero) Finalize()
- func (r *Superhero) Get(i int) types.Field
- func (_ Superhero) HintSize(int)
- func (r Superhero) MarshalJSON() ([]byte, error)
- func (r *Superhero) NullField(i int)
- func (r Superhero) Schema() string
- func (r Superhero) SchemaName() string
- func (r Superhero) Serialize(w io.Writer) error
- func (_ Superhero) SetBoolean(v bool)
- func (_ Superhero) SetBytes(v []byte)
- func (r *Superhero) SetDefault(i int)
- func (_ Superhero) SetDouble(v float64)
- func (_ Superhero) SetFloat(v float32)
- func (_ Superhero) SetInt(v int32)
- func (_ Superhero) SetLong(v int64)
- func (_ Superhero) SetString(v string)
- func (_ Superhero) SetUnionElem(v int64)
- func (r *Superhero) UnmarshalJSON(data []byte) error
- type Superpower
- func (_ Superpower) AppendArray() types.Field
- func (_ Superpower) AppendMap(key string) types.Field
- func (_ Superpower) AvroCRC64Fingerprint() []byte
- func (_ Superpower) Finalize()
- func (r *Superpower) Get(i int) types.Field
- func (_ Superpower) HintSize(int)
- func (r Superpower) MarshalJSON() ([]byte, error)
- func (r *Superpower) NullField(i int)
- func (r Superpower) Schema() string
- func (r Superpower) SchemaName() string
- func (r Superpower) Serialize(w io.Writer) error
- func (_ Superpower) SetBoolean(v bool)
- func (_ Superpower) SetBytes(v []byte)
- func (r *Superpower) SetDefault(i int)
- func (_ Superpower) SetDouble(v float64)
- func (_ Superpower) SetFloat(v float32)
- func (_ Superpower) SetInt(v int32)
- func (_ Superpower) SetLong(v int64)
- func (_ Superpower) SetString(v string)
- func (_ Superpower) SetUnionElem(v int64)
- func (r *Superpower) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const SuperheroAvroCRC64Fingerprint = "\x1e\x8e\x9cj\xdbGd\xaf"
View Source
const SuperpowerAvroCRC64Fingerprint = "\r+\x84\x8ee\xc6a\n"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArraySuperpowerWrapper ¶
type ArraySuperpowerWrapper struct {
Target *[]Superpower
}
func (ArraySuperpowerWrapper) AppendArray ¶
func (r ArraySuperpowerWrapper) AppendArray() types.Field
func (ArraySuperpowerWrapper) AppendMap ¶
func (_ ArraySuperpowerWrapper) AppendMap(key string) types.Field
func (ArraySuperpowerWrapper) Finalize ¶
func (_ ArraySuperpowerWrapper) Finalize()
func (ArraySuperpowerWrapper) HintSize ¶
func (r ArraySuperpowerWrapper) HintSize(s int)
func (ArraySuperpowerWrapper) NullField ¶
func (r ArraySuperpowerWrapper) NullField(i int)
func (ArraySuperpowerWrapper) SetBoolean ¶
func (_ ArraySuperpowerWrapper) SetBoolean(v bool)
func (ArraySuperpowerWrapper) SetBytes ¶
func (_ ArraySuperpowerWrapper) SetBytes(v []byte)
func (ArraySuperpowerWrapper) SetDefault ¶
func (_ ArraySuperpowerWrapper) SetDefault(i int)
func (ArraySuperpowerWrapper) SetDouble ¶
func (_ ArraySuperpowerWrapper) SetDouble(v float64)
func (ArraySuperpowerWrapper) SetFloat ¶
func (_ ArraySuperpowerWrapper) SetFloat(v float32)
func (ArraySuperpowerWrapper) SetInt ¶
func (_ ArraySuperpowerWrapper) SetInt(v int32)
func (ArraySuperpowerWrapper) SetLong ¶
func (_ ArraySuperpowerWrapper) SetLong(v int64)
func (ArraySuperpowerWrapper) SetString ¶
func (_ ArraySuperpowerWrapper) SetString(v string)
func (ArraySuperpowerWrapper) SetUnionElem ¶
func (_ ArraySuperpowerWrapper) SetUnionElem(v int64)
type Superhero ¶
type Superhero struct { Id int32 `json:"id"` Affiliation_id int32 `json:"affiliation_id"` Name string `json:"name"` Life float32 `json:"life"` Energy float32 `json:"energy"` Powers []Superpower `json:"powers"` }
func NewSuperhero ¶
func NewSuperhero() Superhero
func (Superhero) AppendArray ¶
func (Superhero) AvroCRC64Fingerprint ¶
func (Superhero) MarshalJSON ¶
func (Superhero) SchemaName ¶
func (Superhero) SetBoolean ¶
func (*Superhero) SetDefault ¶
func (Superhero) SetUnionElem ¶
func (*Superhero) UnmarshalJSON ¶
type Superpower ¶
type Superpower struct { Id int32 `json:"id"` Name string `json:"name"` Damage float32 `json:"damage"` Energy float32 `json:"energy"` Passive bool `json:"passive"` }
func DeserializeSuperpower ¶
func DeserializeSuperpower(r io.Reader) (Superpower, error)
func DeserializeSuperpowerFromSchema ¶
func DeserializeSuperpowerFromSchema(r io.Reader, schema string) (Superpower, error)
func NewSuperpower ¶
func NewSuperpower() Superpower
func (Superpower) AppendArray ¶
func (_ Superpower) AppendArray() types.Field
func (Superpower) AvroCRC64Fingerprint ¶
func (_ Superpower) AvroCRC64Fingerprint() []byte
func (Superpower) Finalize ¶
func (_ Superpower) Finalize()
func (Superpower) HintSize ¶
func (_ Superpower) HintSize(int)
func (Superpower) MarshalJSON ¶
func (r Superpower) MarshalJSON() ([]byte, error)
func (*Superpower) NullField ¶
func (r *Superpower) NullField(i int)
func (Superpower) Schema ¶
func (r Superpower) Schema() string
func (Superpower) SchemaName ¶
func (r Superpower) SchemaName() string
func (Superpower) SetBoolean ¶
func (_ Superpower) SetBoolean(v bool)
func (Superpower) SetBytes ¶
func (_ Superpower) SetBytes(v []byte)
func (*Superpower) SetDefault ¶
func (r *Superpower) SetDefault(i int)
func (Superpower) SetDouble ¶
func (_ Superpower) SetDouble(v float64)
func (Superpower) SetFloat ¶
func (_ Superpower) SetFloat(v float32)
func (Superpower) SetInt ¶
func (_ Superpower) SetInt(v int32)
func (Superpower) SetLong ¶
func (_ Superpower) SetLong(v int64)
func (Superpower) SetString ¶
func (_ Superpower) SetString(v string)
func (Superpower) SetUnionElem ¶
func (_ Superpower) SetUnionElem(v int64)
func (*Superpower) UnmarshalJSON ¶
func (r *Superpower) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.