Versions in this module Expand all Collapse all v1 v1.0.1 Jul 4, 2022 v1.0.0 Apr 10, 2022 Changes in this version + var IgnoreTime *time.Time = &time.Time + type ErrTrackFailed struct + Message string + func (err *ErrTrackFailed) Error() string + type Event struct + IP string + Properties map[string]interface{} + Timestamp *time.Time + type Mixpanel interface + Alias func(distinctId, newId string) error + Import func(distinctId, eventName string, e *Event) error + Track func(distinctId, eventName string, e *Event) error + Update func(distinctId string, u *Update) error + UpdateGroup func(groupKey, groupId string, u *Update) error + UpdateUser func(distinctId string, u *Update) error + func New(token, apiURL string) Mixpanel + func NewFromClient(c *http.Client, token, apiURL string) Mixpanel + func NewFromClientWithSecret(c *http.Client, token, secret, apiURL string) Mixpanel + func NewWithSecret(token, secret, apiURL string) Mixpanel + type MixpanelError struct + Err error + URL string + func (err *MixpanelError) Cause() error + func (err *MixpanelError) Error() string + type Mock struct + People map[string]*MockPeople + func NewMock() *Mock + func (m *Mock) Alias(distinctId, newId string) error + func (m *Mock) Import(distinctId, eventName string, e *Event) error + func (m *Mock) String() string + func (m *Mock) Track(distinctId, eventName string, e *Event) error + func (m *Mock) Update(distinctId string, u *Update) error + func (m *Mock) UpdateGroup(groupKey, groupUser string, u *Update) error + func (m *Mock) UpdateUser(distinctId string, u *Update) error + type MockEvent struct + Name string + type MockPeople struct + Events []MockEvent + IP string + Properties map[string]interface{} + Time *time.Time + func (mp *MockPeople) String() string + type Update struct + IP string + Operation string + Properties map[string]interface{} + Timestamp *time.Time