async

package
v0.0.0-...-98ed532 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 20 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 the default analytics dispatcher, forwarding analytics events to the state-svc service

func New

func New(source string, svcModel *model.SvcModel, cfg *config.Instance, auth *authentication.Auth, out output.Outputer, projectNameSpace string) *Client

func (*Client) Close

func (a *Client) Close()

func (*Client) Event

func (a *Client) Event(category, action string, dims ...*dimensions.Values)

Event logs an event to google analytics

func (*Client) EventWithLabel

func (a *Client) EventWithLabel(category, action, label string, dims ...*dimensions.Values)

EventWithLabel logs an event with a label to google analytics

func (*Client) EventWithSource

func (a *Client) EventWithSource(category, action, source string, dims ...*dimensions.Values)

EventWithSource logs an event with another source to google analytics. For example, log runtime events triggered by executors as coming from an executor instead of from State Tool.

func (*Client) Wait

func (a *Client) Wait()

Wait can be called to ensure that all events have been processed

Jump to

Keyboard shortcuts

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