Documentation ¶
Index ¶
- Constants
- Variables
- func FetchStudioWorkload(c *colly.Collector, studioID int, cb func(s Studio), ecb cfac.ErrorCallback) *sync.WaitGroup
- func FetchStudios(c *colly.Collector, coords cfac.Coordinate, cb func(s []Studio), ...)
- func NewMeasurable() cfac.Measurable
- type Measurable
- type Studio
- type StudioDates
- type StudioLocation
- type StudioTour
- type StudioWorkload
Constants ¶
View Source
const ( Url = "https://www.fitx.de" UrlWorkload = Url + "/fitnessstudio/{studio_id}/workload" UrlStudiosByCoordinates = Url + "/studios/by-coordinates" UrlServices = "https://services.fitx.de" UrlStudioPlan = UrlServices + "/survey/nps_courseplan_display" UrlStudioDetail = UrlServices + "/survey/nps_studiodetail_v2" )
Variables ¶
View Source
var (
StudioIDs = []int{
38,
}
)
Functions ¶
func FetchStudioWorkload ¶
func FetchStudios ¶
func FetchStudios(c *colly.Collector, coords cfac.Coordinate, cb func(s []Studio), ecb cfac.ErrorCallback)
func NewMeasurable ¶
func NewMeasurable() cfac.Measurable
Types ¶
type Measurable ¶
type Measurable struct {
// contains filtered or unexported fields
}
func (*Measurable) Fetch ¶
func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup
type Studio ¶
type Studio struct { Distance interface{} `json:"distance"` Name string `json:"name"` Alias string `json:"alias"` Identifier string `json:"identifier"` BranchID int `json:"branchId"` Location StudioLocation `json:"location"` VirtualTour StudioTour `json:"virtualTour"` Notice interface{} `json:"notice"` Dates StudioDates `json:"dates"` Badge interface{} `json:"badge"` Promotions []string `json:"promotions"` Status int `json:"status"` DisablePreregistration interface{} `json:"disablePreregistration"` VisitorData [][]int `json:"visitorData"` TrialworkoutEnabled bool `json:"trialworkoutEnabled"` TrialworkoutRestricted bool `json:"trialworkoutRestricted"` PreregistrationAgeRestricted bool `json:"preregistrationAgeRestricted"` PreregistrationAccountHolderRestricted bool `json:"preregistrationAccountHolderRestricted"` Images []string `json:"images"` ListText string `json:"listText"` ListTextColor interface{} `json:"listTextColor"` GoogleRating float64 `json:"googleRating"` GoogleRatingCount int `json:"googleRatingCount"` Workload StudioWorkload `json:"workload"` }
func (*Studio) Measure ¶
func (s *Studio) Measure() cfac.Measurement
type StudioDates ¶
type StudioDates struct { Opening int `json:"opening"` OpeningRegular int `json:"openingRegular"` OpeningCourses int `json:"openingCourses"` TemporarilyClosedReason interface{} `json:"temporarilyClosedReason"` TemporarilyClosedFrom interface{} `json:"temporarilyClosedFrom"` TemporarilyClosedTo interface{} `json:"temporarilyClosedTo"` Presale interface{} `json:"presale"` }
type StudioLocation ¶
type StudioTour ¶
type StudioWorkload ¶
Click to show internal directories.
Click to hide internal directories.