Documentation ¶
Index ¶
- func DeleteFire(c *gin.Context)
- func DeleteFireShare(c *gin.Context)
- func DeleteHandler(c *gin.Context)
- func DeleteHandlerMembers(c *gin.Context)
- func DeleteSecondFactor(c *gin.Context)
- func GetFire(c *gin.Context)
- func GetFireFile(c *gin.Context)
- func GetFires(c *gin.Context)
- func GetHandler(c *gin.Context)
- func GetHandlers(c *gin.Context)
- func GetNotificationParams(c *gin.Context)
- func GetPayloads(c *gin.Context)
- func GetPublicFire(c *gin.Context)
- func GetPublicFireFile(c *gin.Context)
- func GetSecondFactor(c *gin.Context)
- func GetUsers(c *gin.Context)
- func PostFireShare(c *gin.Context)
- func PostHandler(c *gin.Context)
- func PostHandlerMembers(c *gin.Context)
- func PostLogin(c *gin.Context)
- func PostLogout(c *gin.Context)
- func PostNotificationParams(c *gin.Context)
- func PostSetPassword(c *gin.Context)
- func PostSetSecondFactor(c *gin.Context)
- func PutHandler(c *gin.Context)
- func PutHandlerMembers(c *gin.Context)
- func SetSession(c *gin.Context, user models.User)
- type APIFires
- type GetSecondFactorResp
- type HandlerCreateForm
- type HandlerMemberCreateForm
- type HandlerMemberDeleteForm
- type HandlerMemberEditForm
- type HandlerUpdateForm
- type LoginForm
- type Payload
- type SetPasswordForm
- type SetSecondFactorForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFire ¶
@BasePath /api/ @Summary Fires @Description Delete Fire @Produce json @Tags XSSFire @Router /fire/{fire_id} [delete]
func DeleteFireShare ¶
@BasePath /api/ @Summary Fires sharing @Description Disable fire sharing @Tags XSSFire @Router /fire/{fire_id}/share [delete]
func DeleteHandler ¶
@BasePath /api/ @Summary Handlers @Description Delete Handler @Produce json @Router /handlers/{handler_id} [delete] @Tags Handlers
func DeleteHandlerMembers ¶
@BasePath /api/ @Summary Delete Handler Member @Description Delete Handler Member @Produce json @Router /handler/{handler_id}/members [delete] @Tags Handlers @Param HandlerMemberDeleteForm body HandlerMemberDeleteForm true "HandleOptions"
func DeleteSecondFactor ¶ added in v0.1.6
@BasePath /api/ @Summary Delete 2FA @Description Delete 2FA @Produce json @Router /profile/2fa [delete] @Tags Profile
func GetFire ¶
@BasePath /api/ @Summary Fire @Description Get XSS Fire information @Produce json @Tags XSSFire @Router /fire/{fire_id} [get]
func GetFireFile ¶
@BasePath /api/ @Summary Fire @Tags XSSFire @Description Get XSS Fire File @Router /fire/{fire_id}/file/{file_id} [get]
func GetFires ¶
@BasePath /api/ @Summary Fires @Description Get XSS Fires @Produce json @Tags XSSFire @Router /fires [get]
func GetHandler ¶
@BasePath /api/ @Summary Handlers @Description Get Handler information @Produce json @Router /handlers/{handler_id} [get] @Tags Handlers
func GetHandlers ¶
@BasePath /api/ @Summary Handlers @Description Get Handlers list @Produce json @Router /handlers [get] @Tags Handlers
func GetNotificationParams ¶ added in v0.1.5
@BasePath /api/ @Summary Get notification parameters @Description Get notification parameters @Produce json @Router /profile/notifications [get] @Tags Profile
func GetPayloads ¶
@BasePath /api/ @Summary Payloads @Description Get formated payloads @Produce json @Router /payloads [get]
func GetPublicFire ¶
@BasePath /api/ @Summary Public Fire @Description Get XSS Fire information @Produce json @Router /sharing/{fire_id} [get]
func GetPublicFireFile ¶
@BasePath /api/ @Summary Public Fire @Description Get XSS Fire File @Router /sharing/{fire_id}/file/{file_id} [get]
func GetSecondFactor ¶ added in v0.1.6
@BasePath /api/ @Summary Get 2FA information @Description Get 2FA information @Produce json @Router /profile/2fa [get] @Tags Profile
func GetUsers ¶
@BasePath /api/ @Summary Users @Description Get Users list @Produce json @Router /users [get]
func PostFireShare ¶
@BasePath /api/ @Summary Fires sharing @Description Enable fire sharing @Produce json @Tags XSSFire @Router /fire/{fire_id}/share [post]
func PostHandler ¶
@BasePath /api/ @Summary Create Handler @Description Update Handler information @Produce json @Router /handlers [post] @Param HandlerCreateForm body HandlerCreateForm true "HandleOptions" @Tags Handlers
func PostHandlerMembers ¶
@BasePath /api/ @Summary Create Handler Member @Description Create Handler Member @Produce json @Router /handler/{handler_id}/members [post] @Tags Handlers @Param HandlerMemberCreateForm body HandlerMemberCreateForm true "HandleOptions"
func PostLogin ¶
@BasePath /api/ @Summary Login @Description Login @Produce json @Router /login [post] @Param LoginForm body LoginForm true "Credentials" @Tags Authentication
func PostLogout ¶
@BasePath /api/ @Summary Logout @Description Logout Not working for now @Produce json @Router /logout [post]
func PostNotificationParams ¶ added in v0.1.5
@BasePath /api/ @Summary Set notification parameters @Description Set notification parameters @Produce json @Router /profile/notifications [post] @Param Params body []types.NotifierInformation true "Params" @Tags Profile
func PostSetPassword ¶ added in v0.1.4
@BasePath /api/ @Summary Change Password @Description Change Password @Produce json @Router /profile/set_password [post] @Param SetPasswordForm body SetPasswordForm true "Credentials" @Tags Profile
func PostSetSecondFactor ¶ added in v0.1.6
@BasePath /api/ @Summary Set 2FA @Description Change Password @Produce json @Router /profile/2fa [post] @Param SetSecondFactorForm body SetSecondFactorForm true "2FA config" @Tags Profile
func PutHandler ¶
@BasePath /api/ @Summary Handlers @Description Update Handler information @Produce json @Router /handlers/{handler_id} [put] @Param HandlerUpdateForm body HandlerUpdateForm true "HandleOptions" @Tags Handlers
func PutHandlerMembers ¶
@BasePath /api/ @Summary Update Handler Member Role @Description Update Handler Member Role @Produce json @Router /handler/{handler_id}/members [put] @Tags Handlers @Param HandlerMemberEditForm body HandlerMemberEditForm true "HandleOptions"
Types ¶
type GetSecondFactorResp ¶ added in v0.1.6
type HandlerCreateForm ¶
type HandlerMemberCreateForm ¶
type HandlerMemberCreateForm struct { Role models.PermisionType `json:"role" binding:"required"` Email string `json:"email" binding:"required"` }
type HandlerMemberDeleteForm ¶
type HandlerMemberDeleteForm struct {
Id int `json:"user_id" binding:"required"`
}
type HandlerMemberEditForm ¶
type HandlerMemberEditForm struct { Role models.PermisionType `json:"role" binding:"required"` Id int `json:"user_id" binding:"required"` }