Documentation ¶
Index ¶
- Constants
- func FetchAllHouseStats(c *colly.Collector, cb func([]Stats), ecb cfac.ErrorCallback) *sync.WaitGroup
- func FetchAllHouses(c *colly.Collector, cb func([]House), ecb cfac.ErrorCallback) *sync.WaitGroup
- func FetchHouseStats(c *colly.Collector, ident string, cb func(Stats), ecb cfac.ErrorCallback) *sync.WaitGroup
- func FetchHousesWithStats(c *colly.Collector, cb func(House), ecb cfac.ErrorCallback) *sync.WaitGroup
- func NewMeasurable() cfac.Measurable
- type CustomTime
- type House
- type Measurable
- type Stats
Constants ¶
View Source
const ( Url = "https://www.apag.de" UrlApi = Url + "/qad_restAPI.php" UrlChartXS = UrlApi + "?q={ident}&d=chartxs&max={max}" )
Variables ¶
This section is empty.
Functions ¶
func FetchAllHouseStats ¶
func FetchAllHouseStats(c *colly.Collector, cb func([]Stats), ecb cfac.ErrorCallback) *sync.WaitGroup
func FetchAllHouses ¶
func FetchAllHouses(c *colly.Collector, cb func([]House), ecb cfac.ErrorCallback) *sync.WaitGroup
func FetchHouseStats ¶
func FetchHousesWithStats ¶
func FetchHousesWithStats(c *colly.Collector, cb func(House), ecb cfac.ErrorCallback) *sync.WaitGroup
func NewMeasurable ¶
func NewMeasurable() cfac.Measurable
Types ¶
type CustomTime ¶
func (*CustomTime) UnmarshalJSON ¶
func (c *CustomTime) UnmarshalJSON(b []byte) error
type House ¶
type House struct { NID uint `json:"nid,string"` Ident string `json:"ident"` Url string `json:"url"` Title string `json:"title"` Latitude float32 `json:"lat,string"` Longitude float32 `json:"lon,string"` Capacity uint `json:"capacity,string"` Open string `json:"open"` Height string `json:"height"` Type string `json:"type"` Stats *Stats }
func (*House) FetchStats ¶
func (*House) Measure ¶
func (h *House) Measure() cfac.Measurement
type Measurable ¶
type Measurable struct{}
func (*Measurable) Fetch ¶
func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup
Click to show internal directories.
Click to hide internal directories.