medaix

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

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

type CustomTime struct {
	time.Time
}

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

Jump to

Keyboard shortcuts

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