A simple server for serving our SpaceAPI interactively.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
1023 B

package spaceapi // import "git.hacknology.de/projekte/spaceapi"
type SpaceStatus struct {
APIVersion string `json:"api,omitempty"`
Space string `json:"space,omitempty"`
LogoURL string `json:"logo,omitempty"`
URL string `json:"url,omitempty"`
Location Location `json:"location"`
Contact map[string]string `json:"contact"`
IssueReportChannels []string `json:"issue_report_channels,omitempty"`
State State `json:"state"`
Feeds map[string]Feed `json:"feeds,omitempty"`
ProjectURLs []string `json:"projects,omitempty"`
}
type Location struct {
Address string `json:"address,omitempty"`
Longitude float64 `json:"lon,omitempty"`
Latitude float64 `json:"lat,omitempty"`
}
type State struct {
Open *bool `json:"open"`
}
type Feed struct {
Type string `json:"type,omitempty"`
URL string `json:"url,omitempty"`
}