Documentation ¶
Index ¶
- Constants
- func ExpireInDays(days int64) int64
- func ExpireInHours(hours int64) int64
- type CommonEventsResult
- type EventQueryResult
- type ExportQueryResult
- type Mixpanel
- func (m *Mixpanel) AddExpire(params *map[string]string)
- func (m *Mixpanel) AddSig(params *map[string]string)
- func (m *Mixpanel) EventQuery(params map[string]string) (EventQueryResult, error)
- func (m *Mixpanel) ExportQuery(params map[string]string) ([]ExportQueryResult, error)
- func (m *Mixpanel) MakeRequest(action string, params map[string]string) ([]byte, error)
- func (m *Mixpanel) MostCommonEventsLast31Days(params map[string]string) (CommonEventsResult, error)
- func (m *Mixpanel) PeopleQuery(params map[string]string) (map[string]interface{}, error)
- func (m *Mixpanel) SegmentationQuery(params map[string]string) (SegmentationQueryResult, error)
- func (m *Mixpanel) TopEvents(params map[string]string) (TopEventsResult, error)
- func (m *Mixpanel) UserInfo(id string) (map[string]interface{}, error)
- type MixpanelAuth
- type SegmentationQueryResult
- type TopEventsResult
Constants ¶
View Source
const (
DEFAULT_EXPIRE_IN_DAYS int64 = 5
)
Variables ¶
This section is empty.
Functions ¶
func ExpireInDays ¶
func ExpireInHours ¶
Types ¶
type CommonEventsResult ¶
type CommonEventsResult []string
type EventQueryResult ¶
type ExportQueryResult ¶
type Mixpanel ¶
type Mixpanel struct { *MixpanelAuth Format string BaseUrl string }
func NewMixpanel ¶
func (*Mixpanel) EventQuery ¶
func (m *Mixpanel) EventQuery(params map[string]string) (EventQueryResult, error)
func (*Mixpanel) ExportQuery ¶
func (m *Mixpanel) ExportQuery(params map[string]string) ([]ExportQueryResult, error)
func (*Mixpanel) MakeRequest ¶
func (*Mixpanel) MostCommonEventsLast31Days ¶
func (m *Mixpanel) MostCommonEventsLast31Days(params map[string]string) (CommonEventsResult, error)
func (*Mixpanel) PeopleQuery ¶
func (*Mixpanel) SegmentationQuery ¶
func (m *Mixpanel) SegmentationQuery(params map[string]string) (SegmentationQueryResult, error)
type MixpanelAuth ¶
type MixpanelAuth struct {
ApiKey, Secret string
}
func NewMixpanelAuth ¶
func NewMixpanelAuth() (*MixpanelAuth, error)
type SegmentationQueryResult ¶
Click to show internal directories.
Click to hide internal directories.