Documentation ¶
Overview ¶
Package team package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTeamMembersInput ¶
type GetTeamMembersInput struct { // Sort specifies the field to sort on and direction Sort *db.TeamMemberSortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // UserID filters the team members by user ID UserID *string // TeamID filters the team members by user ID TeamID *string }
GetTeamMembersInput is the input for querying a list of team members
type GetTeamsInput ¶
type GetTeamsInput struct { // Sort specifies the field to sort on and direction Sort *db.TeamSortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // TeamNamePrefix filters team list by teamName prefix TeamNamePrefix *string }
GetTeamsInput is the input for querying a list of teams
type Service ¶
type Service interface { GetTeamByID(ctx context.Context, id string) (*models.Team, error) GetTeamByName(ctx context.Context, name string) (*models.Team, error) GetTeamsByIDs(ctx context.Context, idList []string) ([]models.Team, error) GetTeams(ctx context.Context, input *GetTeamsInput) (*db.TeamsResult, error) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error) UpdateTeam(ctx context.Context, team *models.Team) (*models.Team, error) DeleteTeam(ctx context.Context, team *models.Team) error GetTeamMember(ctx context.Context, username, teamName string) (*models.TeamMember, error) GetTeamMembers(ctx context.Context, input *db.GetTeamMembersInput) (*db.TeamMembersResult, error) AddUserToTeam(ctx context.Context, input *models.TeamMember) (*models.TeamMember, error) UpdateTeamMember(ctx context.Context, input *models.TeamMember) (*models.TeamMember, error) RemoveUserFromTeam(ctx context.Context, input *models.TeamMember) error }
Service implements all team related functionality
func NewService ¶
func NewService( logger logger.Logger, dbClient *db.Client, activityService activityevent.Service, ) Service
NewService creates an instance of Service
Click to show internal directories.
Click to hide internal directories.