Documentation
¶
Index ¶
- type Api
- func (a *Api) GetEvent(w http.ResponseWriter, r *http.Request)
- func (a *Api) GetEventComments(w http.ResponseWriter, r *http.Request)
- func (a *Api) GetEvents(w http.ResponseWriter, r *http.Request)
- func (a *Api) GetTeam(w http.ResponseWriter, r *http.Request)
- func (a *Api) GetTeams(w http.ResponseWriter, r *http.Request)
- func (a *Api) PostEvent(w http.ResponseWriter, r *http.Request)
- func (a *Api) PostEventComment(w http.ResponseWriter, r *http.Request)
- func (a Api) Register(router *mux.Router)
- type Event
- type EventComment
- type OnCall
- type Person
- type Service
- type Team
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func (*Api) GetEventComments ¶
func (a *Api) GetEventComments(w http.ResponseWriter, r *http.Request)
func (*Api) PostEventComment ¶
func (a *Api) PostEventComment(w http.ResponseWriter, r *http.Request)
type Event ¶
type Event struct { Id string `json:"id" validate:"isdefault"` State string `json:"state" validate:"isdefault"` Type string `json:"type" validate:"required"` Service string `json:"service"` Title string `json:"title" validate:"required"` Start time.Time `json:"start"` End time.Time `json:"end"` Description string `json:"description"` Labels []string `json:"labels"` ResponsiblePerson User `json:"responsible_person" validate:"-"` NumberOfComments int `json:"number_of_comments" validate:"isdefault"` }
type EventComment ¶
type Team ¶
type Team struct { Id string `json:"id"` Name string `json:"name"` Email string `json:"email"` IMChannelURL string `json:"im_channel_url"` DashboardURL string `json:"dashboard_url"` DocumentationURL string `json:"documentation_url"` Services []Service `json:"managed_services"` OnCall OnCall `json:"on_call"` }
Click to show internal directories.
Click to hide internal directories.