models

package
v0.0.0-...-828e842 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2015 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name       string          `json:"name"`
	Date       time.Time       `json:"date"`
	Properties []EventProperty `json:"properties"`
}

Event represent an event and its datapoints

type EventProperty

type EventProperty struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

EventProperty represent an event's Properties array item

type EventTrackingPayload

type EventTrackingPayload struct {
	Token  string  `json:"token"`
	Events []Event `json:"events"`
}

EventTrackingPayload represents an event tracking payload's json

Jump to

Keyboard shortcuts

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