Documentation ¶
Index ¶
- Variables
- func NewFileHanlder(router *gin.Engine, fileUseCase fileusecase.UseCase, wrapper Wrapper, ...)
- type FileHandler
- func (fh *FileHandler) Create(ctx *gin.Context)
- func (fh *FileHandler) CreateBulk(ctx *gin.Context)
- func (fh *FileHandler) DeleteBulk(ctx *gin.Context)
- func (fh *FileHandler) GetPrivateByName(ctx *gin.Context)
- func (fh *FileHandler) GetPublicByName(ctx *gin.Context)
- func (fh *FileHandler) Update(ctx *gin.Context)
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidAccess validator.Func = func(fl validator.FieldLevel) bool { if access, ok := fl.Field().Interface().(entity.Access); ok { return access.Valid() } return false }
Functions ¶
func NewFileHanlder ¶
func NewFileHanlder(router *gin.Engine, fileUseCase fileusecase.UseCase, wrapper Wrapper, config *utilconfig.Config)
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func (*FileHandler) Create ¶
func (fh *FileHandler) Create(ctx *gin.Context)
func (*FileHandler) CreateBulk ¶
func (fh *FileHandler) CreateBulk(ctx *gin.Context)
func (*FileHandler) DeleteBulk ¶
func (fh *FileHandler) DeleteBulk(ctx *gin.Context)
func (*FileHandler) GetPrivateByName ¶
func (fh *FileHandler) GetPrivateByName(ctx *gin.Context)
func (*FileHandler) GetPublicByName ¶
func (fh *FileHandler) GetPublicByName(ctx *gin.Context)
func (*FileHandler) Update ¶
func (fh *FileHandler) Update(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.