serial

package
v0.0.0-...-f501dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transform

type Transform interface {
	// unmarshal is a wrapper for setting data in model unmarhallers
	Unmarshal(key string, fn func(interface{}) error) error
	UnmarshalBool(name string, v *bool) error
	UnmarshalEntryType(name string, v *scalar.EntryType) error
	UnmarshalFloatFromString(name string, v *float64) error
	UnmarshalFloat(name string, v *float64) error
	UnmarshalInt64(name string, v *int64) error
	UnmarshalInt(name string, v *int) error
	UnmarshalSystemStatus(name string, v *scalar.SystemStatus) error
	UnmarshalLocation(name string, v *time.Location) error
	UnmarshalOrderSide(name string, v *scalar.OrderSide) error
	UnmarshalOrderSTP(name string, v *scalar.OrderSTP) error
	UnmarshalOrderStop(name string, v *scalar.OrderStop) error
	UnmarshalOrderTimeInForce(name string, v *scalar.TimeInForce) error
	UnmarshalOrderType(name string, v *scalar.OrderType) error
	UnmarshalPaymentMethod(name string, v *scalar.PaymentMethod) error
	UnmarshalStringSlice(name string, v *[]string) error
	UnmarshalString(name string, v *string) error
	UnmarshalStructSlice(name string, v _jsonStructSlice, template interface{}) error
	UnmarshalStruct(name string, v interface{}) error
	UnmarshalTime(layout string, name string, v *time.Time) error
	UnmarshalTimeInForce(name string, v *scalar.TimeInForce) error
	UnmarshalTransferMethod(name string, v *scalar.TransferMethod) error
	Value(key string) interface{}
}

Transform interfaces data that can be deserialized/unmarshalled by type.

func NewJSONTransform

func NewJSONTransform(d []byte) (Transform, error)

NewJSONTransform will return a new json transfrom that will create a map of objects from a byte stream of JSON to be deserialized.

Jump to

Keyboard shortcuts

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