Documentation ¶
Index ¶
Constants ¶
View Source
const Collection = "teams"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGroups ¶
type Service ¶
type Service interface { EnsureIndices() error ListTeamsPaginated(perPage int, page int) (TeamPage, error) GetTeam(id string) (Team, error) DeleteTeam(id string) error CreateTeam(id string, data TeamSettings) error UpdateTeam(id string, data TeamSettings) error TeamsForGroups(groups []string) (ByAccess, error) }
func NewService ¶
type Team ¶
type Team struct { Id string `json:"id" bson:"id"` TeamSettings `bson:",inline"` }
type TeamPage ¶
type TeamPage struct { sdk.Pagination Teams []Team `json:"teams"` }
type TeamSettings ¶
type TeamSettings struct { Name string `json:"name"` Description string `json:"description"` Access AccessGroups `json:"access"` }
Click to show internal directories.
Click to hide internal directories.