Make contact information a map.
parent
11e0a75be2
commit
e0860c728b
28
spaceapi.go
28
spaceapi.go
|
@ -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…
Reference in New Issue