Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnCallResponse ¶
type OnCallResponse struct {
TeamsOnCall []struct {
Team struct {
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"team"`
OnCallNow []struct {
EscalationPolicy struct {
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"escalationPolicy"`
Users []struct {
OnCallUser struct {
Username string `json:"username"`
} `json:"onCalluser"`
} `json:"users"`
} `json:"oncallNow"`
} `json:"teamsOnCall"`
}
OnCallResponse object
type OnCallTeam ¶
OnCallTeam object to make managing objects easier
func Fetch ¶
func Fetch(apiID, apiKey string) ([]OnCallTeam, error)
Fetch gets the current oncall users
Click to show internal directories.
Click to hide internal directories.