tracker

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithLogger

func WithLogger(logger types.Logger) Option

func WithStore

func WithStore(store types.Store) Option

type Options

type Options struct {
	Logger types.Logger

	Store types.Store
}

type Tracker

type Tracker struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Tracker, error)

func (*Tracker) AggregateMetrics

func (t *Tracker) AggregateMetrics(ctx context.Context, opts *types.FilterMetricsOpts) (*types.AggregateMetricsResult, error)

func (*Tracker) CreateMetric

func (t *Tracker) CreateMetric(ctx context.Context, opts *types.CreateMetricOpts) error

func (*Tracker) DeleteMetric

func (t *Tracker) DeleteMetric(ctx context.Context, opts *types.DeleteMetricOpts) error

func (*Tracker) GetMetric

func (t *Tracker) GetMetric(ctx context.Context, opts *types.GetMetricOpts) (*types.GetMetricResult, error)

func (*Tracker) ListMetrics

func (t *Tracker) ListMetrics(ctx context.Context, opts *types.FilterMetricsOpts) (*types.ListMetricsResult, error)

Jump to

Keyboard shortcuts

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