Documentation
¶
Index ¶
- type AuthController
- type BugController
- func (bc *BugController) CreateBug(c *gin.Context)
- func (bc *BugController) DeleteBug(c *gin.Context)
- func (bc *BugController) GetBug(c *gin.Context)
- func (bc *BugController) ListBugsAssigned(c *gin.Context)
- func (bc *BugController) ListBugsCreated(c *gin.Context)
- func (bc *BugController) ListBugsInProject(c *gin.Context)
- func (bc *BugController) UpdateBug(c *gin.Context)
- type ProjectController
- func (pc *ProjectController) CreateProject(c *gin.Context)
- func (pc *ProjectController) DeleteProject(c *gin.Context)
- func (pc *ProjectController) GetProject(c *gin.Context)
- func (pc *ProjectController) ListTeamProjects(c *gin.Context)
- func (pc *ProjectController) ListUserProjects(c *gin.Context)
- func (pc *ProjectController) UpdateProject(c *gin.Context)
- type TeamController
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct { AuthService *services.AuthService Config *config.Config }
func (*AuthController) Logout ¶
func (ac *AuthController) Logout(c *gin.Context)
POST /auth/logout For stateless JWT, you typically just ask the client to discard the token.
func (*AuthController) Register ¶
func (ac *AuthController) Register(c *gin.Context)
POST /auth/register
type BugController ¶
type BugController struct {
BugService *services.BugService
}
func (*BugController) CreateBug ¶
func (bc *BugController) CreateBug(c *gin.Context)
POST /projects/:projectId/bugs
func (*BugController) DeleteBug ¶
func (bc *BugController) DeleteBug(c *gin.Context)
DELETE /bugs/:bugId
func (*BugController) ListBugsAssigned ¶
func (bc *BugController) ListBugsAssigned(c *gin.Context)
GET /bugs/assigned/:userId
func (*BugController) ListBugsCreated ¶
func (bc *BugController) ListBugsCreated(c *gin.Context)
GET /bugs/created/:userId
func (*BugController) ListBugsInProject ¶
func (bc *BugController) ListBugsInProject(c *gin.Context)
GET /projects/:projectId/bugs
func (*BugController) UpdateBug ¶
func (bc *BugController) UpdateBug(c *gin.Context)
PUT /bugs/:bugId
type ProjectController ¶
type ProjectController struct {
ProjectService *services.ProjectService
}
func (*ProjectController) CreateProject ¶
func (pc *ProjectController) CreateProject(c *gin.Context)
POST /projects
func (*ProjectController) DeleteProject ¶
func (pc *ProjectController) DeleteProject(c *gin.Context)
DELETE /projects/:projectId
func (*ProjectController) GetProject ¶
func (pc *ProjectController) GetProject(c *gin.Context)
GET /projects/:projectId
func (*ProjectController) ListTeamProjects ¶
func (pc *ProjectController) ListTeamProjects(c *gin.Context)
GET /teams/:teamId/projects
func (*ProjectController) ListUserProjects ¶
func (pc *ProjectController) ListUserProjects(c *gin.Context)
GET /users/:userId/projects
func (*ProjectController) UpdateProject ¶
func (pc *ProjectController) UpdateProject(c *gin.Context)
PUT /projects/:projectId
type TeamController ¶
type TeamController struct {
TeamService *services.TeamService
}
func (*TeamController) CreateTeam ¶
func (tc *TeamController) CreateTeam(c *gin.Context)
POST /teams
func (*TeamController) DeleteTeam ¶
func (tc *TeamController) DeleteTeam(c *gin.Context)
DELETE /teams/:teamId
func (*TeamController) ListUserTeams ¶
func (tc *TeamController) ListUserTeams(c *gin.Context)
GET /users/:userId/teams
func (*TeamController) RemoveUserFromTeam ¶
func (tc *TeamController) RemoveUserFromTeam(c *gin.Context)
DELETE /teams/:teamId/members/:userId (leave team)
func (*TeamController) UpdateTeam ¶
func (tc *TeamController) UpdateTeam(c *gin.Context)
PUT /teams/:teamId
type UserController ¶
type UserController struct {
UserService *services.UserService
}
func (*UserController) DeleteUser ¶
func (uc *UserController) DeleteUser(c *gin.Context)
DELETE /users/:id
func (*UserController) GetUser ¶
func (uc *UserController) GetUser(c *gin.Context)
GET /users/:identifier (could be ID, username, or email)
func (*UserController) UpdateUser ¶
func (uc *UserController) UpdateUser(c *gin.Context)
PUT /users/:id