Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordEvent ¶
RecordEvent is used to put the event batch in the eventBatchChannel, which will be processed by handleEvents.
Types ¶
type EventUploadBatchT ¶
type EventUploadBatchT struct {
WriteKey string
ReceivedAt string
Batch []EventUploadT
}
EventUploadBatchT is a structure to hold batch of events
type EventUploadT ¶
type EventUploadT struct {
Event string `json:"event,omitempty"`
Integrations interface{} `json:"integrations,omitempty"`
Properties interface{} `json:"properties,omitempty"`
OriginalTimestamp string `json:"originalTimestamp,omitempty"`
AnonymousID string `json:"anonymousId,omitempty"`
UserID string `json:"userId,omitempty"`
MessageID string `json:"messageId,omitempty"`
Name string `json:"name,omitempty"`
SentAt string `json:"sentAt,omitempty"`
Type string `json:"type,omitempty"`
}
EventUploadT is a structure to hold actual event data
type GatewayEventBatchT ¶
type GatewayEventBatchT struct {
// contains filtered or unexported fields
}
GatewayEventBatchT is a structure to hold batch of events
Click to show internal directories.
Click to hide internal directories.