handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Event string `json:"event"`
	// distinct_id property tracks a user
	// token property maps your mixpanel project
	// time property is unix timestamp in secs
	// $insert_id is the UUID of the event
	Properties map[string]interface{} `json:"properties"`
}

type Mixpanel

type Mixpanel struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(svc *service.Service) *Mixpanel

func (*Mixpanel) Ping

func (b *Mixpanel) Ping(ctx context.Context, request *pb.PingRequest, response *pb.PingResponse) error

type MixpanelClient

type MixpanelClient struct {
	User    string
	Pass    string
	Project string
}

func (*MixpanelClient) Track

func (m *MixpanelClient) Track(ev Event) error

Jump to

Keyboard shortcuts

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