Documentation ¶
Index ¶
- Constants
- type FolderHandler
- func (h FolderHandler) Create(c *gin.Context)
- func (h FolderHandler) Delete(c *gin.Context)
- func (h FolderHandler) Get(c *gin.Context)
- func (h FolderHandler) GetAll(c *gin.Context)
- func (h FolderHandler) GetTree(c *gin.Context)
- func (h FolderHandler) Move(c *gin.Context)
- func (h FolderHandler) Rename(c *gin.Context)
- type MediaHandler
- func (h MediaHandler) Create(c *gin.Context)
- func (h MediaHandler) Delete(c *gin.Context)
- func (h MediaHandler) Get(c *gin.Context)
- func (h MediaHandler) Move(c *gin.Context)
- func (h MediaHandler) Rename(c *gin.Context)
- func (h MediaHandler) Upload(c *gin.Context)
- func (h MediaHandler) UploadList(c *gin.Context)
Constants ¶
View Source
const ( FolderIdParam = "folder-id" FileIdParam = "file-id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FolderHandler ¶
type FolderHandler struct {
// contains filtered or unexported fields
}
FolderHandler обработчик запросов к папкам
func NewFolderHandler ¶
func NewFolderHandler( folders *actions.Folders, validator services.Validator, ) *FolderHandler
NewFolderHandler конструктор
func (FolderHandler) GetAll ¶
func (h FolderHandler) GetAll(c *gin.Context)
GetAll получение папок и медиа в папке
func (FolderHandler) GetTree ¶
func (h FolderHandler) GetTree(c *gin.Context)
GetTree получение дерева папок
func (FolderHandler) Rename ¶
func (h FolderHandler) Rename(c *gin.Context)
Rename переименование папки
type MediaHandler ¶
type MediaHandler struct {
// contains filtered or unexported fields
}
MediaHandler обработчик запросов к медиа
func NewMediaHandler ¶
func NewMediaHandler( medias *actions.Medias, validator services.Validator, ) *MediaHandler
NewMediaHandler конструктор
func (MediaHandler) Rename ¶
func (h MediaHandler) Rename(c *gin.Context)
Rename переименование медиа
func (MediaHandler) UploadList ¶
func (h MediaHandler) UploadList(c *gin.Context)
UploadList загрузка нескольких медиа
Click to show internal directories.
Click to hide internal directories.