collector

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectNoteMetrics

func CollectNoteMetrics(content []byte) metrics.NoteMetrics

CollectNoteMetrics collects all note metrics from a note with the given `content`.

Types

type Collector

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

Collector represents a metrics collector.

func NewCollector

func NewCollector(ignorePatterns []string, storage storage.Storage) Collector

NewCollector creates a new collector

func (*Collector) CollectMetrics

func (c *Collector) CollectMetrics(root fs.FS, collectionTime time.Time) error

CollectMetrics collects all metrics from a Zettelkasten rooted in `root` and writes them to the storage with a timestamp of `collectionTime`.

type CollectorConfig

type CollectorConfig struct {
	IgnorePatterns []string
}

Jump to

Keyboard shortcuts

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