controller

package
v1.3.171 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLController added in v1.2.44

type ACLController struct {
}

func (*ACLController) CreateRoleAction added in v1.2.44

func (controller *ACLController) CreateRoleAction(c *gin.Context)

@Description Create role @Tags ACL @Param body body acl.CreateOrUpdateRoleRequestDTO true "Request in body" @Router /acl/role/ [post] @Success 200 @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) DeleteRoleAction added in v1.2.44

func (controller *ACLController) DeleteRoleAction(c *gin.Context)

@Description Delete role @Tags ACL @Param ID path string true "ID" @Router /acl/role/{ID}/ [delete] @Success 200 @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) GetRoleAction added in v1.2.44

func (controller *ACLController) GetRoleAction(c *gin.Context)

@Description Get role @Tags ACL @Param ID path string true "ID" @Router /acl/role/{ID}/ [get] @Success 200 {object} acl.RoleResponseDTO @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) GetUserResourcesAction added in v1.2.61

func (controller *ACLController) GetUserResourcesAction(getUserFunc func(c *gin.Context) beeorm.Entity) gin.HandlerFunc

@Description Get Logged User resources @Tags ACL @Router /acl/user-resources/ [get] @Success 200 {object} acl.ResourcesResponseDTO @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) ListResourcesAction added in v1.2.44

func (controller *ACLController) ListResourcesAction(c *gin.Context)

@Description List resources @Tags ACL @Router /acl/resources/ [get] @Success 200 {object} acl.ResourcesResponseDTO @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) ListRolesAction added in v1.2.44

func (controller *ACLController) ListRolesAction(c *gin.Context)

@Description List roles @Tags ACL @Param body body crud.ListRequest true "Request in body" @Router /acl/roles/ [post] @Success 200 {object} acl.RolesResponseDTO @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) PostAssignRoleToUserAction added in v1.2.50

func (controller *ACLController) PostAssignRoleToUserAction(getUserFunc func() beeorm.Entity) gin.HandlerFunc

@Description Assign role to user @Tags ACL @Param body body acl.AssignRoleToUserRequestDTO true "Request in body" @Router /acl/assign-role/ [post] @Success 200 @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

func (*ACLController) UpdateRoleAction added in v1.2.44

func (controller *ACLController) UpdateRoleAction(c *gin.Context)

@Description Update role @Tags ACL @Param ID path string true "ID" @Param body body acl.CreateOrUpdateRoleRequestDTO true "Request in body" @Router /acl/role/{ID}/ [put] @Success 200 @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened" @Security BearerAuth

type ClockworkController added in v1.0.0

type ClockworkController struct {
}

func (*ClockworkController) GetIndexAction added in v1.0.0

func (controller *ClockworkController) GetIndexAction(c *gin.Context)

type DevPanelController

type DevPanelController struct {
}

func (*DevPanelController) CreateDevPanelUserAction added in v0.8.93

func (controller *DevPanelController) CreateDevPanelUserAction(c *gin.Context)

func (*DevPanelController) DeleteRedisStreamAction

func (controller *DevPanelController) DeleteRedisStreamAction(c *gin.Context)

func (*DevPanelController) GetAlters

func (controller *DevPanelController) GetAlters(c *gin.Context)

func (*DevPanelController) GetClearCacheAction

func (controller *DevPanelController) GetClearCacheAction(c *gin.Context)

func (*DevPanelController) GetClearRedisStreamsAction

func (controller *DevPanelController) GetClearRedisStreamsAction(c *gin.Context)

func (*DevPanelController) GetEnvValues added in v1.1.24

func (controller *DevPanelController) GetEnvValues(c *gin.Context)

func (*DevPanelController) GetFeatureFlags added in v0.9.53

func (controller *DevPanelController) GetFeatureFlags(c *gin.Context)

func (*DevPanelController) GetMetrics added in v1.3.48

func (controller *DevPanelController) GetMetrics(c *gin.Context)

func (*DevPanelController) GetRedisDelayedQueues added in v1.3.69

func (controller *DevPanelController) GetRedisDelayedQueues(c *gin.Context)

func (*DevPanelController) GetRedisSearchAlters added in v0.1.4

func (controller *DevPanelController) GetRedisSearchAlters(c *gin.Context)

func (*DevPanelController) GetRedisSearchIndexes added in v0.1.4

func (controller *DevPanelController) GetRedisSearchIndexes(c *gin.Context)

func (*DevPanelController) GetRedisSearchStatistics added in v0.1.4

func (controller *DevPanelController) GetRedisSearchStatistics(c *gin.Context)

func (*DevPanelController) GetRedisStatistics

func (controller *DevPanelController) GetRedisStatistics(c *gin.Context)

func (*DevPanelController) GetRedisStreams

func (controller *DevPanelController) GetRedisStreams(c *gin.Context)

func (*DevPanelController) GetSettingsAction added in v0.9.13

func (controller *DevPanelController) GetSettingsAction(c *gin.Context)

func (*DevPanelController) PostDisableFeatureFlag added in v0.9.53

func (controller *DevPanelController) PostDisableFeatureFlag(c *gin.Context)

func (*DevPanelController) PostEnableFeatureFlag added in v0.9.53

func (controller *DevPanelController) PostEnableFeatureFlag(c *gin.Context)

func (*DevPanelController) PostGenerateTokenAction

func (controller *DevPanelController) PostGenerateTokenAction(c *gin.Context)

func (*DevPanelController) PostLoginDevPanelAction

func (controller *DevPanelController) PostLoginDevPanelAction(c *gin.Context)

func (*DevPanelController) PostRedisSearchForceReindex added in v0.1.4

func (controller *DevPanelController) PostRedisSearchForceReindex(c *gin.Context)

func (*DevPanelController) PostRedisSearchForceReindexAll added in v1.0.28

func (controller *DevPanelController) PostRedisSearchForceReindexAll(c *gin.Context)

func (*DevPanelController) PostRedisSearchIndexInfo added in v0.1.4

func (controller *DevPanelController) PostRedisSearchIndexInfo(c *gin.Context)

func (*DevPanelController) PostRequestsLogger added in v1.1.59

func (controller *DevPanelController) PostRequestsLogger(c *gin.Context)

type ErrorLogController

type ErrorLogController struct {
}

func (*ErrorLogController) DeleteAllErrors

func (controller *ErrorLogController) DeleteAllErrors(c *gin.Context)

func (*ErrorLogController) DeleteError

func (controller *ErrorLogController) DeleteError(c *gin.Context)

func (*ErrorLogController) GetErrors

func (controller *ErrorLogController) GetErrors(c *gin.Context)

func (*ErrorLogController) Panic

func (controller *ErrorLogController) Panic(_ *gin.Context)

type FileController added in v1.2.35

type FileController struct {
}

func (*FileController) PostUploadImageAction added in v1.2.35

func (controller *FileController) PostUploadImageAction(c *gin.Context)

@Description Upload @Tags File @Accept mpfd @Param body formData file.RequestDTOUploadFile true "Request in formData" @Param file formData file true "The file" @Router /file/upload/ [post] @Security BearerAuth @Success 200 {object} file.File @Failure 400 {object} response.Error @Failure 401 "Unauthorized" @Failure 403 "Forbidden" @Failure 500 "Something bad happened"

type MenuItem struct {
	Label string
	URL   string
	Icon  string
}

type ReadinessController added in v0.8.72

type ReadinessController struct {
}

func (*ReadinessController) GetLivenessAction added in v0.8.72

func (controller *ReadinessController) GetLivenessAction(c *gin.Context)

func (*ReadinessController) GetReadinessAction added in v0.8.72

func (controller *ReadinessController) GetReadinessAction(c *gin.Context)

type TranslationController added in v1.2.93

type TranslationController struct {
}

func (*TranslationController) DeleteTranslationAction added in v1.2.93

func (controller *TranslationController) DeleteTranslationAction(c *gin.Context)

@Description Delete Translation @Tags Translation @Router /translation/delete/{ID}/ [delete] @Param ID path string true "id" @Security BearerAuth @Success 200 @Failure 400 {object} response.Error @Failure 500 "Something bad happened"

func (*TranslationController) GetTranslationAction added in v1.2.93

func (controller *TranslationController) GetTranslationAction(c *gin.Context)

@Description Get Translation @Tags Translation @Router /translation/{ID}/ [get] @Param ID path string true "id" @Security BearerAuth @Success 200 {object} translation.ResponseTranslation @Failure 400 {object} response.Error @Failure 500 "Something bad happened"

func (*TranslationController) PostCreateTranslationAction added in v1.2.93

func (controller *TranslationController) PostCreateTranslationAction(c *gin.Context)

@Description Create Translation @Tags Translation @Router /translation/create/ [post] @Param body body translation.RequestCreateTranslation true "Request in body" @Security BearerAuth @Success 200 {object} translation.ResponseTranslation @Failure 400 {object} response.Error @Failure 500 "Something bad happened"

func (*TranslationController) PostTranslationListAction added in v1.2.95

func (controller *TranslationController) PostTranslationListAction(c *gin.Context)

@Description Translation List @Description Parameters: @Description Page *int `binding:"required"` @Description PageSize *int `binding:"required"` @Description Search map[string]interface{} @Description SearchOR map[string]interface{} @Description Sort map[string]interface{} @Tags Translation @Param body body crud.ListRequest true "Request in body" @Router /translation/list/ [post] @Security BearerAuth @Success 200 {object} translation.ResponseDTOList @Failure 400 {object} response.Error @Failure 500 "Something bad happened"

func (*TranslationController) PostUpdateTranslationAction added in v1.2.93

func (controller *TranslationController) PostUpdateTranslationAction(c *gin.Context)

@Description Update Translation @Tags Translation @Param body body translation.RequestUpdateTranslation true "Request in body" @Router /translation/update/{ID}/ [post] @Param ID path string true "id" @Security BearerAuth @Success 200 {object} translation.ResponseTranslation @Failure 400 {object} response.Error @Failure 500 "Something bad happened"

type UploaderController added in v0.6.9

type UploaderController struct {
}

func (*UploaderController) DeleteFile added in v0.6.9

func (controller *UploaderController) DeleteFile(c *gin.Context)

func (*UploaderController) GetFileAction added in v0.6.9

func (controller *UploaderController) GetFileAction(c *gin.Context)

func (*UploaderController) HeadFile added in v0.6.9

func (controller *UploaderController) HeadFile(c *gin.Context)

func (*UploaderController) PatchFile added in v0.6.9

func (controller *UploaderController) PatchFile(c *gin.Context)

func (*UploaderController) PostFileAction added in v0.6.9

func (controller *UploaderController) PostFileAction(c *gin.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL