segment

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a segment client struct

func NewClient

func NewClient() (*Client, error)

NewClient initiates segment client

func (*Client) Close

func (c *Client) Close() error

Close closes segment client

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, action string, duration time.Duration, err error) error

Upload sends telemetry data to segment

Jump to

Keyboard shortcuts

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