segment

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const WriteKey string = "oU2iC4shRUBfEboaO0FDuDIUk49Ime92"

WriteKey for analytics

Variables

View Source
var Verbose bool

Verbose controls the verbosity of segment analytics client

Functions

This section is empty.

Types

type Client

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

Client for the Segment.io analytics service

func NewClient

func NewClient() (*Client, error)

NewClient returns a new segment analytics client

func (Client) Close

func (c Client) Close()

Close the analytics connection

func (Client) Publish

func (c Client) Publish(event string, props map[string]interface{})

Publish enqueues the sending of a tracking event

Jump to

Keyboard shortcuts

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