Browse Source

Make contact information a map.

master
Robert Jacob 2 years ago
parent
commit
e0860c728b
1 changed files with 10 additions and 18 deletions
  1. +10
    -18
      spaceapi.go

+ 10
- 18
spaceapi.go View File

@ -1,16 +1,16 @@
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 Contact `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"`
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 {
@ -19,14 +19,6 @@ type Location struct {
Latitude float64 `json:"lat,omitempty"`
}
type Contact struct {
Jabber string `json:"jabber,omitempty"`
IRC string `json:"irc,omitempty"`
Email string `json:"email,omitempty"`
MailingList string `json:"ml,omitempty"`
IssueMail string `json:"issue_mail,omitempty"`
}
type State struct {
Open *bool `json:"open"`
}


Loading…
Cancel
Save