Documentation
¶
Overview ¶
Code generated by GoJayGen. DO NOT EDIT.\n\n
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float32sPtr ¶
type Float32sPtr []*float32
func (Float32sPtr) MarshalJSONArray ¶
func (a Float32sPtr) MarshalJSONArray(enc *gojay.Encoder)
MarshalJSONArray encodes arrays into JSON
func (*Float32sPtr) UnmarshalJSONArray ¶
func (a *Float32sPtr) UnmarshalJSONArray(dec *gojay.Decoder) error
UnmarshalJSONArray decodes JSON array elements into slice
type Ints ¶
type Ints []int
func (Ints) MarshalJSONArray ¶
MarshalJSONArray encodes arrays into JSON
type Message ¶
type Message struct {
Id int `json:"id"`
Name string `json:"name"`
Price float64 `json:"price"`
Ints []int `json:"ints"`
Floats []*float32 `json:"floats"`
SubMessageX *SubMessage `json:"subMessageX"`
MessagesX []*SubMessage `json:"messagesX"`
SubMessageY SubMessage
MessagesY []SubMessage
IsTrue *bool `json:"enabled"`
Payload Paylod `json:"data"`
Ignore string `json:"-"`
}
func (*Message) MarshalJSONObject ¶
MarshalJSONObject implements MarshalerJSONObject
type Paylod ¶
type Paylod []byte
func (*Paylod) MarshalJSONObject ¶
MarshalJSONObject implements MarshalerJSONObject
type SubMessage ¶
type SubMessage struct {
Id int `json:"id"`
Description string `json:"description"`
StartTime time.Time `json:"startDate" timeFormat:"yyyy-MM-dd HH:mm:ss"`
EndTime *time.Time `json:"endDate" timeLayout:"2006-01-02 15:04:05"`
}
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
Click to show internal directories.
Click to hide internal directories.