api

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	APIKey   string
	Email    string
	Password string
	// contains filtered or unexported fields
}

func (*Auth) IDToken

func (a *Auth) IDToken() (string, error)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client, projectID string, auth *Auth) *Client

func (*Client) GetTeamCurrent

func (c *Client) GetTeamCurrent(team string) (*TeamPairing, error)

func (*Client) GetTeamHistorical

func (c *Client) GetTeamHistorical(team string) (*TeamPairingHistory, error)

func (*Client) GetTeamLists

func (c *Client) GetTeamLists(team string) (*TeamLists, error)

type TeamList

type TeamList struct {
	Title string         `json:"title,omitempty"`
	Order uint           `json:"order,omitempty"`
	Items []TeamListItem `json:"items,omitempty"`
}

type TeamListItem

type TeamListItem struct {
	Text      string                          `json:"text,omitempty"`
	Order     uint                            `json:"order,omitempty"`
	Reactions map[string]TeamListItemReaction `json:"reactions,omitempty"`
}

type TeamListItemReaction

type TeamListItemReaction struct {
	Count     uint `json:"count,omitempty"`
	Timestamp uint `json:"timestamp,omitempty"`
}

type TeamLists

type TeamLists struct {
	Lists []TeamList `json:"lists,omitempty"`
}

type TeamPair

type TeamPair struct {
	People []TeamPerson `json:"people,omitempty"`
	Roles  []TeamRole   `json:"roles,omitempty"`
	Tracks []TeamTrack  `json:"tracks,omitempty"`
}

type TeamPairing

type TeamPairing struct {
	Pairs []TeamPair `json:"pairs,omitempty"`
}

func (TeamPairing) ByRole

func (pairing TeamPairing) ByRole(roleName string) []TeamPair

func (TeamPairing) ByTrack

func (pairing TeamPairing) ByTrack(trackName string) []TeamPair

type TeamPairingHistory

type TeamPairingHistory map[string]TeamPairing

type TeamPerson

type TeamPerson struct {
	ID          string `json:"id,omitempty"`
	DisplayName string `json:"displayName,omitempty"`
}

type TeamRole

type TeamRole struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type TeamTrack

type TeamTrack struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL