model

package
v0.0.0-...-d336568 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

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

  • SOURCE:
  • data.avsc

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

  • SOURCE:
  • data.avsc

Index

Constants

View Source
const AvroColorGroupAvroCRC64Fingerprint = "\x8b\x99\xe7\x92zb\xd90"

Variables

View Source
var (
	// ColferSizeMax is the upper limit for serial byte sizes.
	ColferSizeMax = 16 * 1024 * 1024
	// ColferListMax is the upper limit for the number of elements in a list.
	ColferListMax = 64 * 1024
)

Colfer configuration attributes

View Source
var (
	ErrInvalidLengthMygogo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMygogo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMygogo = fmt.Errorf("proto: unexpected end of group")
)
View Source
var GoUnusedProtection__ int
View Source
var GojayColorGroupPool *sync.Pool

Functions

func RegisterGeneratedResolver

func RegisterGeneratedResolver()

RegisterGeneratedResolver registers generated resolver.

Types

type ArrayStringWrapper

type ArrayStringWrapper struct {
	Target *[]string
}

func (ArrayStringWrapper) AppendArray

func (r ArrayStringWrapper) AppendArray() types.Field

func (ArrayStringWrapper) AppendMap

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

func (ArrayStringWrapper) Finalize

func (_ ArrayStringWrapper) Finalize()

func (ArrayStringWrapper) Get

func (_ ArrayStringWrapper) Get(i int) types.Field

func (ArrayStringWrapper) HintSize

func (r ArrayStringWrapper) HintSize(s int)

func (ArrayStringWrapper) NullField

func (r ArrayStringWrapper) NullField(i int)

func (ArrayStringWrapper) SetBoolean

func (_ ArrayStringWrapper) SetBoolean(v bool)

func (ArrayStringWrapper) SetBytes

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

func (ArrayStringWrapper) SetDefault

func (_ ArrayStringWrapper) SetDefault(i int)

func (ArrayStringWrapper) SetDouble

func (_ ArrayStringWrapper) SetDouble(v float64)

func (ArrayStringWrapper) SetFloat

func (_ ArrayStringWrapper) SetFloat(v float32)

func (ArrayStringWrapper) SetInt

func (_ ArrayStringWrapper) SetInt(v int32)

func (ArrayStringWrapper) SetLong

func (_ ArrayStringWrapper) SetLong(v int64)

func (ArrayStringWrapper) SetString

func (_ ArrayStringWrapper) SetString(v string)

func (ArrayStringWrapper) SetUnionElem

func (_ ArrayStringWrapper) SetUnionElem(v int64)

type AvroColorGroup

type AvroColorGroup struct {
	Id int32 `json:"id"`

	Name string `json:"name"`

	Colors []string `json:"colors"`
}

func DeserializeAvroColorGroup

func DeserializeAvroColorGroup(r io.Reader) (AvroColorGroup, error)

func DeserializeAvroColorGroupFromSchema

func DeserializeAvroColorGroupFromSchema(r io.Reader, schema string) (AvroColorGroup, error)

func NewAvroColorGroup

func NewAvroColorGroup() AvroColorGroup

func (AvroColorGroup) AppendArray

func (_ AvroColorGroup) AppendArray() types.Field

func (AvroColorGroup) AppendMap

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

func (AvroColorGroup) AvroCRC64Fingerprint

func (_ AvroColorGroup) AvroCRC64Fingerprint() []byte

func (AvroColorGroup) Finalize

func (_ AvroColorGroup) Finalize()

func (*AvroColorGroup) Get

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

func (AvroColorGroup) HintSize

func (_ AvroColorGroup) HintSize(int)

func (AvroColorGroup) MarshalJSON

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

func (*AvroColorGroup) NullField

func (r *AvroColorGroup) NullField(i int)

func (AvroColorGroup) Schema

func (r AvroColorGroup) Schema() string

func (AvroColorGroup) SchemaName

func (r AvroColorGroup) SchemaName() string

func (AvroColorGroup) Serialize

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

func (AvroColorGroup) SetBoolean

func (_ AvroColorGroup) SetBoolean(v bool)

func (AvroColorGroup) SetBytes

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

func (*AvroColorGroup) SetDefault

func (r *AvroColorGroup) SetDefault(i int)

func (AvroColorGroup) SetDouble

func (_ AvroColorGroup) SetDouble(v float64)

func (AvroColorGroup) SetFloat

func (_ AvroColorGroup) SetFloat(v float32)

func (AvroColorGroup) SetInt

func (_ AvroColorGroup) SetInt(v int32)

func (AvroColorGroup) SetLong

func (_ AvroColorGroup) SetLong(v int64)

func (AvroColorGroup) SetString

func (_ AvroColorGroup) SetString(v string)

func (AvroColorGroup) SetUnionElem

func (_ AvroColorGroup) SetUnionElem(v int64)

func (*AvroColorGroup) UnmarshalJSON

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

type ColferColorGroup

type ColferColorGroup struct {
	Id int32

	Name string

	Colors []string
}

func (*ColferColorGroup) MarshalBinary

func (o *ColferColorGroup) MarshalBinary() (data []byte, err error)

MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is model.ColferMax.

func (*ColferColorGroup) MarshalLen

func (o *ColferColorGroup) MarshalLen() (int, error)

MarshalLen returns the Colfer serial byte size. The error return option is model.ColferMax.

func (*ColferColorGroup) MarshalTo

func (o *ColferColorGroup) MarshalTo(buf []byte) int

MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.

func (*ColferColorGroup) Unmarshal

func (o *ColferColorGroup) Unmarshal(data []byte) (int, error)

Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, model.ColferError and model.ColferMax.

func (*ColferColorGroup) UnmarshalBinary

func (o *ColferColorGroup) UnmarshalBinary(data []byte) error

UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, model.ColferError, model.ColferTail and model.ColferMax.

type ColferError

type ColferError int

ColferError signals a data mismatch as as a byte index.

func (ColferError) Error

func (i ColferError) Error() string

Error honors the error interface.

type ColferMax

type ColferMax string

ColferMax signals an upper limit breach.

func (ColferMax) Error

func (m ColferMax) Error() string

Error honors the error interface.

type ColferTail

type ColferTail int

ColferTail signals data continuation as a byte index.

func (ColferTail) Error

func (i ColferTail) Error() string

Error honors the error interface.

type ColorGroup

type ColorGroup struct {
	Id     int      `json:"id" xml:"id,attr" msg:"id"`
	Name   string   `json:"name" xml:"name" msg:"name"`
	Colors []string `json:"colors" xml:"colors" msg:"colors"`
}

func (ColorGroup) MarshalMUS

func (v ColorGroup) MarshalMUS(buf []byte) int

MarshalMUS fills buf with the MUS encoding of v.

func (ColorGroup) MarshalMUSUnsafe

func (v ColorGroup) MarshalMUSUnsafe(buf []byte) int

MarshalMUSUnsafe fills buf with the MUS encoding of v.

func (*ColorGroup) MarshalMsg

func (z *ColorGroup) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ColorGroup) Msgsize

func (z *ColorGroup) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (ColorGroup) SizeMUS

func (v ColorGroup) SizeMUS() int

SizeMUS returns the size of the MUS-encoded v.

func (ColorGroup) SizeMUSUnsafe

func (v ColorGroup) SizeMUSUnsafe() int

SizeMUSUnsafe returns the size of the MUS-encoded v.

func (*ColorGroup) UnmarshalMUS

func (v *ColorGroup) UnmarshalMUS(buf []byte) (int, error)

UnmarshalMUS parses the MUS-encoded buf, and sets the result to *v.

func (*ColorGroup) UnmarshalMUSUnsafe

func (v *ColorGroup) UnmarshalMUSUnsafe(buf []byte) (int, error)

UnmarshalMUSUnsafe parses the MUS-encoded buf, and sets the result to *v.

func (*ColorGroup) UnmarshalMsg

func (z *ColorGroup) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type EColorGroup

type EColorGroup struct {
	Id     int      `json:"id" xml:"id,attr" msg:"id"`
	Name   string   `json:"name" xml:"name" msg:"name"`
	Colors []string `json:"colors" xml:"colors" msg:"colors"`
}

func (EColorGroup) MarshalEasyJSON

func (v EColorGroup) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EColorGroup) MarshalJSON

func (v EColorGroup) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EColorGroup) UnmarshalEasyJSON

func (v *EColorGroup) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EColorGroup) UnmarshalJSON

func (v *EColorGroup) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type FColorGroup

type FColorGroup struct {
	Id     int      `json:"id" xml:"id,attr" msg:"id"`
	Name   string   `json:"name" xml:"name" msg:"name"`
	Colors []string `json:"colors" xml:"colors" msg:"colors"`
}

func (*FColorGroup) MarshalJSON

func (j *FColorGroup) MarshalJSON() ([]byte, error)

MarshalJSON marshal bytes to json - template

func (*FColorGroup) MarshalJSONBuf

func (j *FColorGroup) MarshalJSONBuf(buf fflib.EncodingBuffer) error

MarshalJSONBuf marshal buff to json - template

func (*FColorGroup) UnmarshalJSON

func (j *FColorGroup) UnmarshalJSON(input []byte) error

UnmarshalJSON umarshall json - template of ffjson

func (*FColorGroup) UnmarshalJSONFFLexer

func (j *FColorGroup) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error

UnmarshalJSONFFLexer fast json unmarshall - template ffjson

type GencodeColorGroup

type GencodeColorGroup struct {
	Id     int32
	Name   string
	Colors []string
}

func (*GencodeColorGroup) Marshal

func (d *GencodeColorGroup) Marshal(buf []byte) ([]byte, error)

func (*GencodeColorGroup) Size

func (d *GencodeColorGroup) Size() (s uint64)

func (*GencodeColorGroup) Unmarshal

func (d *GencodeColorGroup) Unmarshal(buf []byte) (uint64, error)

type GogoProtoColorGroup

type GogoProtoColorGroup struct {
	Id                   *int32   `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	Name                 *string  `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	Colors               []string `protobuf:"bytes,3,rep,name=colors" json:"colors,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GogoProtoColorGroup) Descriptor

func (*GogoProtoColorGroup) Descriptor() ([]byte, []int)

func (*GogoProtoColorGroup) GetColors

func (m *GogoProtoColorGroup) GetColors() []string

func (*GogoProtoColorGroup) GetId

func (m *GogoProtoColorGroup) GetId() int32

func (*GogoProtoColorGroup) GetName

func (m *GogoProtoColorGroup) GetName() string

func (*GogoProtoColorGroup) Marshal

func (m *GogoProtoColorGroup) Marshal() (dAtA []byte, err error)

func (*GogoProtoColorGroup) MarshalTo

func (m *GogoProtoColorGroup) MarshalTo(dAtA []byte) (int, error)

func (*GogoProtoColorGroup) MarshalToSizedBuffer

func (m *GogoProtoColorGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GogoProtoColorGroup) ProtoMessage

func (*GogoProtoColorGroup) ProtoMessage()

func (*GogoProtoColorGroup) Reset

func (m *GogoProtoColorGroup) Reset()

func (*GogoProtoColorGroup) Size

func (m *GogoProtoColorGroup) Size() (n int)

func (*GogoProtoColorGroup) String

func (m *GogoProtoColorGroup) String() string

func (*GogoProtoColorGroup) Unmarshal

func (m *GogoProtoColorGroup) Unmarshal(dAtA []byte) error

func (*GogoProtoColorGroup) XXX_DiscardUnknown

func (m *GogoProtoColorGroup) XXX_DiscardUnknown()

func (*GogoProtoColorGroup) XXX_Marshal

func (m *GogoProtoColorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GogoProtoColorGroup) XXX_Merge

func (m *GogoProtoColorGroup) XXX_Merge(src proto.Message)

func (*GogoProtoColorGroup) XXX_Size

func (m *GogoProtoColorGroup) XXX_Size() int

func (*GogoProtoColorGroup) XXX_Unmarshal

func (m *GogoProtoColorGroup) XXX_Unmarshal(b []byte) error

type GojayColorGroup

type GojayColorGroup struct {
	Id     int      `json:"id" xml:"id,attr" msg:"id"`
	Name   string   `json:"name" xml:"name" msg:"name"`
	Colors []string `json:"colors" xml:"colors" msg:"colors"`
}

func (*GojayColorGroup) IsNil

func (g *GojayColorGroup) IsNil() bool

IsNil checks if instance is nil

func (*GojayColorGroup) MarshalJSONObject

func (g *GojayColorGroup) MarshalJSONObject(enc *gojay.Encoder)

MarshalJSONObject implements MarshalerJSONObject

func (*GojayColorGroup) NKeys

func (g *GojayColorGroup) NKeys() int

NKeys returns the number of keys to unmarshal

func (*GojayColorGroup) Reset

func (g *GojayColorGroup) Reset()

Reset reset fields

func (*GojayColorGroup) UnmarshalJSONObject

func (g *GojayColorGroup) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type ProtoColorGroup

type ProtoColorGroup struct {
	Id                   *int32   `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	Name                 *string  `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	Colors               []string `protobuf:"bytes,3,rep,name=colors" json:"colors,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProtoColorGroup) Descriptor

func (*ProtoColorGroup) Descriptor() ([]byte, []int)

func (*ProtoColorGroup) GetColors

func (m *ProtoColorGroup) GetColors() []string

func (*ProtoColorGroup) GetId

func (m *ProtoColorGroup) GetId() int32

func (*ProtoColorGroup) GetName

func (m *ProtoColorGroup) GetName() string

func (*ProtoColorGroup) ProtoMessage

func (*ProtoColorGroup) ProtoMessage()

func (*ProtoColorGroup) Reset

func (m *ProtoColorGroup) Reset()

func (*ProtoColorGroup) String

func (m *ProtoColorGroup) String() string

func (*ProtoColorGroup) XXX_DiscardUnknown

func (m *ProtoColorGroup) XXX_DiscardUnknown()

func (*ProtoColorGroup) XXX_Marshal

func (m *ProtoColorGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProtoColorGroup) XXX_Merge

func (m *ProtoColorGroup) XXX_Merge(src proto.Message)

func (*ProtoColorGroup) XXX_Size

func (m *ProtoColorGroup) XXX_Size() int

func (*ProtoColorGroup) XXX_Unmarshal

func (m *ProtoColorGroup) XXX_Unmarshal(b []byte) error

type RlpColorGroup

type RlpColorGroup struct {
	Id     uint64   `json:"id" xml:"id,attr" msg:"id"`
	Name   string   `json:"name" xml:"name" msg:"name"`
	Colors []string `json:"colors" xml:"colors" msg:"colors"`
}

type Strings

type Strings []string

func (Strings) IsNil

func (a Strings) IsNil() bool

IsNil checks if array is nil

func (Strings) MarshalJSONArray

func (a Strings) MarshalJSONArray(enc *gojay.Encoder)

MarshalJSONArray encodes arrays into JSON

func (*Strings) UnmarshalJSONArray

func (a *Strings) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

type ThriftColorGroup

type ThriftColorGroup struct {
	ID     int32    `thrift:"id,1" db:"id" json:"id"`
	Name   string   `thrift:"name,2" db:"name" json:"name"`
	Colors []string `thrift:"colors,3" db:"colors" json:"colors"`
}

Attributes:

  • ID
  • Name
  • Colors

func NewThriftColorGroup

func NewThriftColorGroup() *ThriftColorGroup

func (*ThriftColorGroup) Equals

func (p *ThriftColorGroup) Equals(other *ThriftColorGroup) bool

func (*ThriftColorGroup) GetColors

func (p *ThriftColorGroup) GetColors() []string

func (*ThriftColorGroup) GetID

func (p *ThriftColorGroup) GetID() int32

func (*ThriftColorGroup) GetName

func (p *ThriftColorGroup) GetName() string

func (*ThriftColorGroup) Read

func (p *ThriftColorGroup) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*ThriftColorGroup) ReadField1

func (p *ThriftColorGroup) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*ThriftColorGroup) ReadField2

func (p *ThriftColorGroup) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*ThriftColorGroup) ReadField3

func (p *ThriftColorGroup) ReadField3(ctx context.Context, iprot thrift.TProtocol) error

func (*ThriftColorGroup) String

func (p *ThriftColorGroup) String() string

func (*ThriftColorGroup) Write

func (p *ThriftColorGroup) Write(ctx context.Context, oprot thrift.TProtocol) error

type ThriftIterColorGroup

type ThriftIterColorGroup struct {
	ID     int32    `thrift:",1" db:"id" json:"id"`
	Name   string   `thrift:",2" db:"name" json:"name"`
	Colors []string `thrift:",3" db:"colors" json:"colors"`
}

type ZColorGroup

type ZColorGroup struct {
	Id     int      `json:"id" xml:"id,attr" msg:"id" zid:"0"`
	Name   string   `json:"name" xml:"name" msg:"name" zid:"1"`
	Colors []string `json:"colors" xml:"colors" msg:"colors" zid:"2"`
}

func (*ZColorGroup) DecodeMsg

func (z *ZColorGroup) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable We treat empty fields as if we read a Nil from the wire.

func (*ZColorGroup) EncodeMsg

func (z *ZColorGroup) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*ZColorGroup) MarshalMsg

func (z *ZColorGroup) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*ZColorGroup) Msgsize

func (z *ZColorGroup) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ZColorGroup) UnmarshalMsg

func (z *ZColorGroup) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

func (*ZColorGroup) UnmarshalMsgWithCfg

func (z *ZColorGroup) UnmarshalMsgWithCfg(bts []byte, cfg *msgp.RuntimeConfig) (o []byte, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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