fitx

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: 7 Imported by: 0

Documentation

Index

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 FetchStudioWorkload(c *colly.Collector, studioID int, cb func(s Studio), ecb cfac.ErrorCallback) *sync.WaitGroup

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 StudioLocation struct {
	Street     string  `json:"street"`
	Zip        string  `json:"zip"`
	Place      string  `json:"place"`
	Region     string  `json:"region"`
	Phone      string  `json:"phone"`
	Directions string  `json:"directions"`
	Lat        float64 `json:"lat"`
	Lon        float64 `json:"lon"`
	PlaceID    string  `json:"placeId"`
}

type StudioTour

type StudioTour struct {
	Enabled  bool   `json:"enabled"`
	URL      string `json:"url"`
	EmbedURL string `json:"embedUrl"`
}

type StudioWorkload

type StudioWorkload struct {
	Term       string `json:"term"`
	Percentage int    `json:"percentage"`
}

Jump to

Keyboard shortcuts

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