analytics

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValueNotConfigured  = errors.New("value is not set in context")
	ErrIllegalContextValue = errors.New("illegal value is set in context")
)

Functions

func CreateCommandIDContext

func CreateCommandIDContext(ctx context.Context, commandID string) context.Context

func CreateStartTimeContext

func CreateStartTimeContext(ctx context.Context, time *time.Time) context.Context

func GenerateCommandID

func GenerateCommandID() string

func GetCommandID

func GetCommandID(ctx context.Context) (string, error)

func GetStartTime

func GetStartTime(ctx context.Context) (*time.Time, error)

func SendCommandAnalyticsEvent

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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