Documentation
¶
Index ¶
- Constants
- func FetchPegel(c *colly.Collector, cb func(p SpendePegelStats), ecb cfac.ErrorCallback) *sync.WaitGroup
- func NewMeasurable() cfac.Measurable
- type DonationDate
- type Location
- type Measurable
- type ResponseDonationDates
- type ResponseLocations
- type ResponseSpendePegelStats
- type Slot
- type SpendePegelStats
Constants ¶
View Source
const ( UrlApi = "https://balu-api.ukaachen.de/v1" UrlApiLocations = UrlApi + "/locations" UrlApiDonationDates = UrlApi + "/donationdates" UrlSpendePegelStat = UrlApi + "/spendepegel-stat" )
Variables ¶
This section is empty.
Functions ¶
func FetchPegel ¶
func FetchPegel(c *colly.Collector, cb func(p SpendePegelStats), ecb cfac.ErrorCallback) *sync.WaitGroup
func NewMeasurable ¶
func NewMeasurable() cfac.Measurable
Types ¶
type DonationDate ¶
type Location ¶
type Location struct { ID int `json:"id"` Label string `json:"label"` Name string `json:"name"` Address string `json:"address"` GeoAddress string `json:"geoAddress"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Description struct { Md string `json:"md"` } `json:"description"` }
type Measurable ¶
type Measurable struct{}
func (*Measurable) Fetch ¶
func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup
type ResponseDonationDates ¶
type ResponseDonationDates []DonationDate
type ResponseLocations ¶
type ResponseLocations []Location
type SpendePegelStats ¶
func (*SpendePegelStats) Measure ¶
func (p *SpendePegelStats) Measure() cfac.Measurement
Click to show internal directories.
Click to hide internal directories.