tdrm

package
v0.0.0-...-441f3cd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Url = "https://tdrm2.fiff.de/index.php"
)

Variables

This section is empty.

Functions

func Fetch

func Fetch(c *colly.Collector, cb func(Station), ecb cfac.ErrorCallback) *sync.WaitGroup

func NewMeasurable

func NewMeasurable() cfac.Measurable

Types

type Measurable

type Measurable struct{}

func (*Measurable) Fetch

func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup

type Station

type Station struct {
	ID         int
	Name       string
	Region     string
	Coordinate cfac.Coordinate
	AvgValue   float64
}

func (Station) Measure

func (s Station) Measure() []cfac.Measurement

Jump to

Keyboard shortcuts

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