usage

package
v0.190.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = NewClient(true)

DefaultClient is the default preconfigured instance of Client.

Functions

This section is empty.

Types

type Client added in v0.189.0

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

Client is a thin wrapper around analytics.Client.

func NewClient added in v0.189.0

func NewClient(enabled bool) *Client

NewClient creates a new instance of Client.

func (*Client) Close added in v0.189.0

func (c *Client) Close() error

Close closes the underlying client.

func (*Client) Collect added in v0.189.0

func (c *Client) Collect(subject string, opts ...Option)

Collect reports the usage of subject along with its attached metadata that is props.

type Option added in v0.189.0

type Option func(Properties)

Option is a function that configures a Properties instance.

func Artifacts added in v0.189.0

func Artifacts(art config.Artifacts) Option

func Flags added in v0.189.0

func Flags(flags *pflag.FlagSet) Option

func Framework added in v0.189.0

func Framework(name, version string) Option

func NPM added in v0.189.0

func NPM(npm config.Npm) Option

func Node added in v0.189.0

func Node(version string) Option

func NumSuites added in v0.189.0

func NumSuites(n int) Option

func Reporters added in v0.189.0

func Reporters(reporters config.Reporters) Option

func SauceConfig added in v0.189.0

func SauceConfig(c config.SauceConfig) Option

func Sharding added in v0.189.0

func Sharding(shardTypes []string, shardOpts map[string]bool) Option

func SmartRetry added in v0.189.0

func SmartRetry(isSmartRetried bool) Option

type Properties

type Properties = analytics.Properties

Properties is a scoped data transfer object for usage reporting and contains usage event related data.

Jump to

Keyboard shortcuts

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