Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Detail string `json:"detail"` // This is a pointer in order to marshal '0' value // but not if uninitialized. Index *uint64 `json:"index,omitempty"` }
Error describes either an API error, or a rejected event. If rejected event, then Index field will be included.
func (*Error) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Error) MarshalJSONBuf ¶
func (j *Error) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Error) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Error) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Event ¶
func (*Event) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Event) MarshalJSONBuf ¶
func (j *Event) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Event) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Event) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type EventMsg ¶
func (*EventMsg) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*EventMsg) MarshalJSONBuf ¶
func (j *EventMsg) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*EventMsg) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*EventMsg) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Payload ¶
type Payload map[string]interface{}
Payload is the event's actual data inserted into data stores.
type TrackRequest ¶
type TrackRequest struct { SenderID string `json:"sender_id" valid:"notempty,required"` Events []Event `json:"events"` }
func (*TrackRequest) MarshalJSON ¶
func (j *TrackRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*TrackRequest) MarshalJSONBuf ¶
func (j *TrackRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*TrackRequest) UnmarshalJSON ¶
func (j *TrackRequest) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*TrackRequest) UnmarshalJSONFFLexer ¶
func (j *TrackRequest) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Type ¶
type Type struct { EventVersionField string `json:"event_version" valid:"notempty,required"` EventNameField string `json:"event_name" valid:"notempty,required"` }
Type is an Event's metadata.
func (*Type) MarshalJSON ¶
MarshalJSON marshal bytes to json - template
func (*Type) MarshalJSONBuf ¶
func (j *Type) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
func (*Type) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Type) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson