sourcedebugger

package
v0.1.9-patch-2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordEvent

func RecordEvent(writeKey string, eventBatch string) bool

RecordEvent is used to put the event batch in the eventBatchChannel, which will be processed by handleEvents.

func Setup

func Setup()

Setup initializes this module

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

Jump to

Keyboard shortcuts

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