transfer

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bools

type Bools struct {
	Name   string
	Values []bool
}

func (*Bools) Feed

func (s *Bools) Feed(batchSize int) interface{}

func (Bools) IsNil

func (v Bools) IsNil() bool

IsNil checks if array is nil

func (*Bools) Key

func (s *Bools) Key() string

func (*Bools) Len

func (s *Bools) Len() int

func (Bools) MarshalJSONArray

func (v Bools) MarshalJSONArray(enc *gojay.Encoder)

MarshalJSONArray encodes arrays into JSON

func (*Bools) Set

func (s *Bools) Set(values ...interface{}) error

func (*Bools) UnmarshalJSONArray

func (v *Bools) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

func (*Bools) ValueAt

func (s *Bools) ValueAt(index int) interface{}

type Float32s

type Float32s struct {
	Name   string
	Values []float32
}

func (*Float32s) Feed

func (s *Float32s) Feed(batchSize int) interface{}

func (Float32s) IsNil

func (v Float32s) IsNil() bool

IsNil checks if array is nil

func (*Float32s) Key

func (s *Float32s) Key() string

func (*Float32s) Len

func (s *Float32s) Len() int

func (Float32s) MarshalJSONArray

func (v Float32s) MarshalJSONArray(enc *gojay.Encoder)

MarshalJSONArray encodes arrays into JSON

func (*Float32s) Set

func (s *Float32s) Set(values ...interface{}) error

func (*Float32s) UnmarshalJSONArray

func (v *Float32s) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

func (*Float32s) ValueAt

func (s *Float32s) ValueAt(index int) interface{}

type Float64s

type Float64s struct {
	Name   string
	Values []float64
}

func (*Float64s) Feed

func (s *Float64s) Feed(batchSize int) interface{}

func (Float64s) IsNil

func (v Float64s) IsNil() bool

IsNil checks if array is nil

func (*Float64s) Key

func (s *Float64s) Key() string

func (*Float64s) Len

func (s *Float64s) Len() int

func (Float64s) MarshalJSONArray

func (v Float64s) MarshalJSONArray(enc *gojay.Encoder)

MarshalJSONArray encodes arrays into JSON

func (*Float64s) Set

func (s *Float64s) Set(values ...interface{}) error

func (*Float64s) UnmarshalJSONArray

func (v *Float64s) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

func (*Float64s) ValueAt

func (s *Float64s) ValueAt(index int) interface{}

type Input

type Input struct {
	BatchSize int
	Keys      Strings
	Values
	Unmapped Values // values that are not part of an input
}

func (*Input) BatchMode

func (i *Input) BatchMode() bool

func (*Input) Init

func (i *Input) Init(size int)

func (*Input) KeyAt

func (i *Input) KeyAt(index int) string

func (*Input) ObjectAt

func (i *Input) ObjectAt(provider *gtly.Provider, index int) *gtly.Object

type Int32s

type Int32s struct {
	Name   string
	Values []int32
}

func (*Int32s) Feed

func (s *Int32s) Feed(batchSize int) interface{}

func (Int32s) IsNil

func (v Int32s) IsNil() bool

IsNil checks if array is nil

func (*Int32s) Key

func (s *Int32s) Key() string

func (*Int32s) Len

func (s *Int32s) Len() int

func (Int32s) MarshalJSONArray

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

MarshalJSONArray encodes arrays into JSON

func (*Int32s) Set

func (s *Int32s) Set(values ...interface{}) error

func (*Int32s) UnmarshalJSONArray

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

UnmarshalJSONArray decodes JSON array elements into slice

func (*Int32s) ValueAt

func (s *Int32s) ValueAt(index int) interface{}

type Int64s

type Int64s struct {
	Name   string
	Values []int64
}

func (*Int64s) Feed

func (s *Int64s) Feed(batchSize int) interface{}

func (Int64s) IsNil

func (v Int64s) IsNil() bool

IsNil checks if array is nil

func (*Int64s) Key

func (s *Int64s) Key() string

func (*Int64s) Len

func (s *Int64s) Len() int

func (Int64s) MarshalJSONArray

func (v Int64s) MarshalJSONArray(enc *gojay.Encoder)

MarshalJSONArray encodes arrays into JSON

func (*Int64s) Set

func (v *Int64s) Set(values ...interface{}) error

func (*Int64s) UnmarshalJSONArray

func (v *Int64s) UnmarshalJSONArray(dec *gojay.Decoder) error

UnmarshalJSONArray decodes JSON array elements into slice

func (*Int64s) ValueAt

func (s *Int64s) ValueAt(index int) interface{}

type Strings

type Strings struct {
	Name   string
	Values []string
}

func (*Strings) Feed

func (s *Strings) Feed(batchSize int) interface{}

func (Strings) IsNil

func (v Strings) IsNil() bool

IsNil checks if array is nil

func (*Strings) Key

func (s *Strings) Key() string

func (*Strings) Len

func (s *Strings) Len() int

func (Strings) MarshalJSONArray

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

MarshalJSONArray encodes arrays into JSON

func (*Strings) Set

func (s *Strings) Set(values ...interface{}) error

func (*Strings) UnmarshalJSONArray

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

UnmarshalJSONArray decodes JSON array elements into slice

func (*Strings) ValueAt

func (s *Strings) ValueAt(index int) interface{}

type Value

type Value interface {
	Set(values ...interface{}) error
	Key() string
	ValueAt(index int) interface{}
	UnmarshalJSONArray(dec *gojay.Decoder) error
	Len() int
	// Will make a new []interface{} that copies old value and fills the rest with the first element.
	// Panics if batchSize is less than current Values size.
	Feed(batchSize int) interface{}
}

type Values

type Values []Value

func (*Values) SetAt

func (v *Values) SetAt(index int, name string, kind reflect.Kind) (Value, error)

SetAt will create []Value at index or extend current array to support index

func (*Values) ValueAt

func (v *Values) ValueAt(index int) Value

Jump to

Keyboard shortcuts

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