telemetry

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOption

func AppendOption(opt EventOpt)

func TrackPluginCommand

func TrackPluginCommand(cmd *cobra.Command, args []string)

Types

type CmdFlags

type CmdFlags interface {
	Flags() *pflag.FlagSet
}

type CmdName

type CmdName interface {
	CommandPath() string
	CalledAs() string
}

type ConfigNameGetter

type ConfigNameGetter interface {
	Name() string
}

type Event

type Event struct {
	Timestamp  time.Time      `json:"timestamp"`
	Source     string         `json:"source"`
	Properties map[string]any `json:"properties"`
}

type EventOpt

type EventOpt func(Event)

type TrackOptions

type TrackOptions struct {
	Err    error
	Signal string
}

Jump to

Keyboard shortcuts

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