file

package
v0.0.0-...-d885e2b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMedia

func AddMedia(c *gin.Context)

AddMedia used for add media file to server

func Backup

func Backup(c *gin.Context)

Backup used for backup this project to zip

func BackupList

func BackupList(c *gin.Context)

BackupList used for get list backup file

func BackupSystem

func BackupSystem() (string, error)

BackupSystem used for backup system to zip

func FilesList

func FilesList(c *gin.Context)

FilesList used for get list uploaded media

func RemoveMedia

func RemoveMedia(c *gin.Context)

RemoveMedia used for remove media from server

Types

type BackupFileList

type BackupFileList struct {
	Name      string `json:"name,omitempty"`
	CreatedOn string `json:"created_on,omitempty"`
}

BackupFileList used as object to store list of file

type File

type File struct {
	crud.Media
}

File used as crud object

type MediaList

type MediaList struct {
	Name string `json:"name,omitempty" form:"name" binding:"required"`
	Type string `json:"type,omitempty" form:"type" binding:"required"`
	URL  string `json:"url,omitempty" form:"url"`
}

MediaList used as object to store list of file

type MediaParam

type MediaParam struct {
	Show string `form:"show"`
}

MediaParam used as param on this file

Jump to

Keyboard shortcuts

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