embedded_struct

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseId

type BaseId struct {
	Id   int
	Name string
}

func (*BaseId) IsNil

func (i *BaseId) IsNil() bool

IsNil checks if instance is nil

func (*BaseId) MarshalJSONObject

func (i *BaseId) MarshalJSONObject(enc *gojay.Encoder)

MarshalJSONObject implements MarshalerJSONObject

func (*BaseId) NKeys

func (i *BaseId) NKeys() int

NKeys returns the number of keys to unmarshal

func (*BaseId) UnmarshalJSONObject

func (i *BaseId) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type Float64s

type Float64s []float64

func (Float64s) IsNil

func (a Float64s) IsNil() bool

IsNil checks if array is nil

func (Float64s) MarshalJSONArray

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

MarshalJSONArray encodes arrays into JSON

func (*Float64s) UnmarshalJSONArray

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

UnmarshalJSONArray decodes JSON array elements into slice

type Ints

type Ints []int

func (Ints) IsNil

func (a Ints) IsNil() bool

IsNil checks if array is nil

func (Ints) MarshalJSONArray

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

MarshalJSONArray encodes arrays into JSON

func (*Ints) UnmarshalJSONArray

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

UnmarshalJSONArray decodes JSON array elements into slice

type Message

type Message struct {
	*BaseId
	SubMessage
	Price       float64
	Ints        []int
	Floats      []float64
	SubMessageX *SubMessage
	MessagesX   []*SubMessage
	SubMessageY SubMessage
	MessagesY   []SubMessage
	IsTrue      *bool
	Payload     []byte
}

func (*Message) IsNil

func (m *Message) IsNil() bool

IsNil checks if instance is nil

func (*Message) MarshalJSONObject

func (m *Message) MarshalJSONObject(enc *gojay.Encoder)

MarshalJSONObject implements MarshalerJSONObject

func (*Message) NKeys

func (m *Message) NKeys() int

NKeys returns the number of keys to unmarshal

func (*Message) UnmarshalJSONObject

func (m *Message) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type SubMessage

type SubMessage struct {
	Description string
	StartTime   time.Time
	EndTime     *time.Time
}

func (*SubMessage) IsNil

func (m *SubMessage) IsNil() bool

IsNil checks if instance is nil

func (*SubMessage) MarshalJSONObject

func (m *SubMessage) MarshalJSONObject(enc *gojay.Encoder)

MarshalJSONObject implements MarshalerJSONObject

func (*SubMessage) NKeys

func (m *SubMessage) NKeys() int

NKeys returns the number of keys to unmarshal

func (*SubMessage) UnmarshalJSONObject

func (m *SubMessage) UnmarshalJSONObject(dec *gojay.Decoder, k string) error

UnmarshalJSONObject implements gojay's UnmarshalerJSONObject

type SubMessages

type SubMessages []SubMessage

func (SubMessages) IsNil

func (s SubMessages) IsNil() bool

func (SubMessages) MarshalJSONArray

func (s SubMessages) MarshalJSONArray(enc *gojay.Encoder)

func (*SubMessages) UnmarshalJSONArray

func (s *SubMessages) UnmarshalJSONArray(dec *gojay.Decoder) error

type SubMessagesPtr

type SubMessagesPtr []*SubMessage

func (SubMessagesPtr) IsNil

func (s SubMessagesPtr) IsNil() bool

func (SubMessagesPtr) MarshalJSONArray

func (s SubMessagesPtr) MarshalJSONArray(enc *gojay.Encoder)

func (*SubMessagesPtr) UnmarshalJSONArray

func (s *SubMessagesPtr) UnmarshalJSONArray(dec *gojay.Decoder) error

Jump to

Keyboard shortcuts

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