amplitude

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEvent

func SendEvent(logger *zap.Logger, eventType EventType, eventProperties map[string]string)

Types

type EventType

type EventType int
const (
	Invalid = "invalid"
	//When adding an event here, also add it to the String() function above
	EventLoad EventType = iota
	EventCloudConnection
)

func (EventType) String

func (s EventType) String() string

type MemoryClient

type MemoryClient struct {
	UploadRequests []map[string]interface{}
	// contains filtered or unexported fields
}

MemoryClient is used for testing Amplitude events are sent without sending anything to Amplitude API

func UseMemoryClient

func UseMemoryClient() *MemoryClient

func (*MemoryClient) LastEvent

func (c *MemoryClient) LastEvent() (map[string]interface{}, error)

func (*MemoryClient) SendEvent

func (c *MemoryClient) SendEvent(logger *zap.Logger, eventType EventType, eventProperties map[string]string)

func (*MemoryClient) Size

func (c *MemoryClient) Size() int

Jump to

Keyboard shortcuts

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