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
Click to show internal directories.
Click to hide internal directories.