def

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	Org      string // service
	Endpoint string
}

type Metric

type Metric interface {
	LogPoint(measurement string, tags map[string]string, fields map[string]any) error
	LogPointWithTime(measurement string, tags map[string]string, fields map[string]any, date time.Time) error
}

type Option

type Option func(*Meta)

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithOrg

func WithOrg(org string) Option

Jump to

Keyboard shortcuts

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