Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStorage ¶
type FakeStorage struct{}
FakeStorage represents a fake implementation of storage to be used in tests.
func (FakeStorage) IsEmpty ¶
func (f FakeStorage) IsEmpty() bool
func (FakeStorage) WriteMetrics ¶ added in v0.2.0
type InfluxDBStorage ¶
type InfluxDBStorage struct {
// contains filtered or unexported fields
}
InfluxDBStorage represents the implementation of a metric storage using InfluxDB.
func NewInfluxDBStorage ¶
func NewInfluxDBStorage(url, org, bucket, token string) InfluxDBStorage
NewInfluxDBStorage creates a new `InfluxDBStorage`.
func (InfluxDBStorage) WriteMetrics ¶ added in v0.2.0
func (i InfluxDBStorage) WriteMetrics(zettelkastenMetrics metrics.Metrics, timestamp time.Time) error
WriteMetric writes `metric` for `noteName` to the storage with `timestamp`.
type Storage ¶
type Storage interface { // WriteMetric writes the `zettelkastenMetrics` to the storage. WriteMetrics(zettelkastenMetrics metrics.Metrics, timestamp time.Time) error }
Storage represents a storage for metrics.
type VictoriaMetricsStorage ¶ added in v0.3.0
type VictoriaMetricsStorage struct {
// contains filtered or unexported fields
}
func NewVictoriaMetricsStorage ¶ added in v0.3.0
func NewVictoriaMetricsStorage(url string) VictoriaMetricsStorage
func (VictoriaMetricsStorage) WriteMetrics ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.