segment

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Verbose controls the verbosity of segment analytics client

View Source
var WriteKey = "9uTKgGzXDVsC97cioQWpiV40GwSlXFEl"

WriteKey for analytics

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{}) error

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