analytics

package
v2.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 12 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(buffer *bytes.Buffer)
}

Client ...

func NewClient

func NewClient(httpClient *http.Client, endpoint string, logger log.Logger, timeout time.Duration) Client

NewClient ...

func NewDefaultClient

func NewDefaultClient(logger log.Logger, timeout time.Duration) Client

NewDefaultClient ...

type Properties

type Properties map[string]interface{}

Properties ...

func NewProperty

func NewProperty(item interface{}) Properties

NewProperty Converts struct into Properties map based on json tags

func (Properties) AppendIfNotEmpty

func (p Properties) AppendIfNotEmpty(key string, value string)

AppendIfNotEmpty ...

func (Properties) Merge

func (p Properties) Merge(properties Properties) Properties

Merge ...

type Tracker

type Tracker interface {
	Enqueue(eventName string, properties ...Properties)
	Wait()
}

Tracker ...

func NewDefaultTracker

func NewDefaultTracker(logger log.Logger, properties ...Properties) Tracker

NewDefaultTracker ...

func NewTracker

func NewTracker(client Client, waitTimeout time.Duration, properties ...Properties) Tracker

NewTracker ...

Jump to

Keyboard shortcuts

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