Documentation ¶
Overview ¶
The cccac package fetches the current opening state of club room of the Chaos Communication Club in Aachen.
The public API only provides access to a boolean state.
See: https://wiki.aachen.ccc.de/doku.php?id=projekte:clubstatus
Index ¶
Constants ¶
View Source
const ( UrlApi = "https://status.aachen.ccc.de/api/v0" UrlApiCurrentStatus = UrlApi + "/status/current?public" )
Variables ¶
This section is empty.
Functions ¶
func FetchStatus ¶
func FetchStatus(c *colly.Collector, cb func(sts Status), ecb cfac.ErrorCallback) *sync.WaitGroup
func NewMeasurable ¶
func NewMeasurable() cfac.Measurable
Types ¶
type Measurable ¶
type Measurable struct{}
func (*Measurable) Fetch ¶
func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup
type ResponseCurrentStatus ¶
type ResponseCurrentStatus struct {
Changed Status `json:"changed"`
}
Click to show internal directories.
Click to hide internal directories.