Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseURLStr = "https://api.rootly.com" ListUsersAPIEndpoint = "/v1/users" ListTeamsAPIEndpoint = "/v1/teams" GetTeamAPIEndpoint = "/v1/teams/%s" ResourcesPageSize = 200 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAttribute ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, baseURL string, apiKey string, resourcesPageSize int) (*Client, error)
NewClient creates a new Rootly client. Allows for a configurable base URL, API key, and resources page size.
func (*Client) GetTeamMemberAndAdminIDs ¶
func (c *Client) GetTeamMemberAndAdminIDs( ctx context.Context, teamID string, ) ([]int, []int, error)
GetTeamMemberAndAdminIDs returns a list of member user IDs and admin user IDs for a given team ID.
type Team ¶
type Team struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes TeamAttributes `json:"attributes"`
}
type TeamAttributes ¶
type TeamResponse ¶
type TeamResponse struct {
Data Team `json:"data"`
}
type TeamsResponse ¶
type User ¶
type User struct {
ID string `json:"id"`
Type string `json:"type"`
Attributes UserAttributes `json:"attributes"`
}
type UserAttributes ¶
type UsersResponse ¶
Click to show internal directories.
Click to hide internal directories.