Documentation
¶
Index ¶
- type TeamRepository
- func (self *TeamRepository) GetAll(ctx context.Context, authPredicate predicate.Team) ([]*ent.Team, error)
- func (self *TeamRepository) GetByID(ctx context.Context, id uuid.UUID) (*ent.Team, error)
- func (self *TeamRepository) GetNamespace(ctx context.Context, id uuid.UUID) (string, error)
- func (self *TeamRepository) HasUserWithID(ctx context.Context, teamID uuid.UUID, userID uuid.UUID) (bool, error)
- func (self *TeamRepository) Update(ctx context.Context, teamID uuid.UUID, name string, description *string) (*ent.Team, error)
- type TeamRepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamRepository ¶
type TeamRepository struct {
// contains filtered or unexported fields
}
TeamRepository handles GitHub-related database operations
func NewTeamRepository ¶
func NewTeamRepository(db *ent.Client) *TeamRepository
NewTeamRepository creates a new GitHub repository
func (*TeamRepository) GetNamespace ¶
func (*TeamRepository) HasUserWithID ¶
type TeamRepositoryInterface ¶
type TeamRepositoryInterface interface {
Update(ctx context.Context, teamID uuid.UUID, name string, description *string) (*ent.Team, error)
GetAll(ctx context.Context, authPredicate predicate.Team) ([]*ent.Team, error)
GetByID(ctx context.Context, id uuid.UUID) (*ent.Team, error)
GetNamespace(ctx context.Context, id uuid.UUID) (string, error)
HasUserWithID(ctx context.Context, teamID uuid.UUID, userID uuid.UUID) (bool, error)
}
TeamRepositoryInterface ...
Click to show internal directories.
Click to hide internal directories.