root

package
v0.0.0-...-15c5a81 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Id        string `json:"id,omitempty"`
	Key       string `json:"key,omitempty"`
	Value     int    `json:"value,omitempty"`
	EntryTime string `json:"entry_time,omitempty"`
}

---- Metric ----

type MetricService

type MetricService interface {
	AddMetric(m Metric) (Metric, error)
	GetMetrics() ([]Metric, error)
	ShowActiveMetrics() ([]Metric, error)
	SumMetrics(key string) (MetricSum, error)
	ClearOutdatedMetrics(key string) error
	CanCount(m Metric) bool
}

---- Metric Interface ----

type MetricSum

type MetricSum struct {
	Key string `json:"key"`
	Sum int    `json:"sum"`
}

---- MetricSum ----

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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