Documentation ¶
Index ¶
Constants ¶
View Source
const ( UrlVisitors = "https://www.medaix.de/counter/visitors.php" UrlCalendar = "https://portal.medaix.de/courseplan/frontend/fillCalendar" )
Variables ¶
This section is empty.
Functions ¶
func FetchOccupancy ¶
func FetchOccupancy(id int, c *colly.Collector, cb Callback, ecb cfac.ErrorCallback)
func NewMeasurable ¶
func NewMeasurable() cfac.Measurable
Types ¶
type Callback ¶
type Callback func(v VisitorCounter)
type CustomTime ¶
func (*CustomTime) UnmarshalJSON ¶
func (c *CustomTime) UnmarshalJSON(b []byte) error
type Measurable ¶
type Measurable struct{}
func (*Measurable) Fetch ¶
func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup
type ResponseVisitors ¶
type ResponseVisitors VisitorCounter
type VisitorCounter ¶
type VisitorCounter struct { ID int `json:"id,string"` Name string `json:"name"` Badge string `json:"badge"` BadgeClass string `json:"badgeClass"` ShowBadge string `json:"showBadge"` Value int `json:"value,string"` Max int `json:"max,string"` A string `json:"a"` B string `json:"b"` Active string `json:"active"` Timestamp CustomTime `json:"timestamp"` }
func (*VisitorCounter) Measure ¶
func (s *VisitorCounter) Measure() cfac.Measurement
Click to show internal directories.
Click to hide internal directories.