segment

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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(writeKey string) (*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