collector

package
v0.0.0-...-09ee25e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package collector implements model.Collector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemCollector

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

FileSystemCollector is a simplistic implementation of a collector that stores reports in the filesystem.

func NewFileSystemCollector

func NewFileSystemCollector(cfg *config.Config) *FileSystemCollector

NewFileSystemCollector creates a new filesystem collector.

func (*FileSystemCollector) Geolocate

func (fsc *FileSystemCollector) Geolocate(m *model.Measurement, ip string) error

func (*FileSystemCollector) Save

func (fsc *FileSystemCollector) Save(m *model.Measurement) bool

Save implements model.Collector

func (*FileSystemCollector) Submit

func (fsc *FileSystemCollector) Submit(mm []*model.Measurement) bool

Jump to

Keyboard shortcuts

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