metrics

package
v0.0.0-...-2015863 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(m Metric) error

Send sends a metric to a plausible instance

Types

type Metric

type Metric struct {
	UserAgent    string            `json:"-"`
	ForwardedFor string            `json:"-"`
	EventName    string            `json:"name"`
	URL          string            `json:"url"`
	Props        map[string]string `json:"props"`
	Domain       string            `json:"domain"`
}

Jump to

Keyboard shortcuts

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