Documentation ¶
Overview ¶
Package handlers provides handlers for the application.
Package handlers provides handlers for the application.
Package handlers provides handlers for the application.
Index ¶
- type ApiHandler
- func (h *ApiHandler) CreateResource(c *gin.Context)
- func (h *ApiHandler) CreateTeam(c *gin.Context)
- func (h *ApiHandler) CreateUser(c *gin.Context)
- func (h *ApiHandler) DeleteOneResource(c *gin.Context)
- func (h *ApiHandler) DeleteTeam(c *gin.Context)
- func (h *ApiHandler) DeleteUser(c *gin.Context)
- func (h *ApiHandler) GetCurrentTeam(c *gin.Context) (*models.Team, error)
- func (h *ApiHandler) GetCurrentUser(c *gin.Context) (*models.User, error)
- func (h *ApiHandler) GetOneResource(c *gin.Context)
- func (h *ApiHandler) GetResources(c *gin.Context)
- func (h *ApiHandler) GetResourcesByFilter(c *gin.Context)
- func (h *ApiHandler) GetTeam(c *gin.Context)
- func (h *ApiHandler) GetTeams(c *gin.Context)
- func (h *ApiHandler) GetUser(c *gin.Context)
- func (h *ApiHandler) GetUsers(c *gin.Context)
- func (h *ApiHandler) ImportCSPResources(c *gin.Context)
- func (h *ApiHandler) JoinTeam(c *gin.Context)
- func (h *ApiHandler) Login(c *gin.Context)
- func (h *ApiHandler) UpdateOneResource(c *gin.Context)
- func (h *ApiHandler) UpdateTeam(c *gin.Context)
- func (h *ApiHandler) UpdateUser(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiHandler ¶
type ApiHandler struct {
// contains filtered or unexported fields
}
ApiHandler is a handler for the API.
func NewApiHandler ¶
func NewApiHandler(ctx context.Context) *ApiHandler
NewApiHandler creates a new ApiHandler.
func (*ApiHandler) CreateResource ¶
func (h *ApiHandler) CreateResource(c *gin.Context)
CreateResource creates a resource.
func (*ApiHandler) CreateTeam ¶
func (h *ApiHandler) CreateTeam(c *gin.Context)
CreateTeam creates a team.
func (*ApiHandler) CreateUser ¶
func (h *ApiHandler) CreateUser(c *gin.Context)
CreateUser creates a user.
func (*ApiHandler) DeleteOneResource ¶
func (h *ApiHandler) DeleteOneResource(c *gin.Context)
DeleteOneResource deletes a resource.
func (*ApiHandler) DeleteTeam ¶
func (h *ApiHandler) DeleteTeam(c *gin.Context)
DeleteTeam deletes a team.
func (*ApiHandler) DeleteUser ¶
func (h *ApiHandler) DeleteUser(c *gin.Context)
DeleteUser deletes a user.
func (*ApiHandler) GetCurrentTeam ¶
GetCurrentTeam gets the current team from the context.
func (*ApiHandler) GetCurrentUser ¶
GetCurrentUser gets the current user.
func (*ApiHandler) GetOneResource ¶
func (h *ApiHandler) GetOneResource(c *gin.Context)
GetOneResource gets one resource.
func (*ApiHandler) GetResources ¶
func (h *ApiHandler) GetResources(c *gin.Context)
GetResources gets all resources.
func (*ApiHandler) GetResourcesByFilter ¶
func (h *ApiHandler) GetResourcesByFilter(c *gin.Context)
UpdateResource updates a resource.
func (*ApiHandler) GetTeams ¶
func (h *ApiHandler) GetTeams(c *gin.Context)
GetTeams gets all teams.
func (*ApiHandler) GetUsers ¶
func (h *ApiHandler) GetUsers(c *gin.Context)
GetUsers gets all users.
func (*ApiHandler) ImportCSPResources ¶
func (h *ApiHandler) ImportCSPResources(c *gin.Context)
ImportCSPResources imports resources from CSP.
func (*ApiHandler) UpdateOneResource ¶
func (h *ApiHandler) UpdateOneResource(c *gin.Context)
UpdateResource updates a resource.
func (*ApiHandler) UpdateTeam ¶
func (h *ApiHandler) UpdateTeam(c *gin.Context)
UpdateTeam updates a team.
func (*ApiHandler) UpdateUser ¶
func (h *ApiHandler) UpdateUser(c *gin.Context)
UpdateUser updates a user.