Documentation ¶
Index ¶
- func ArchiveType(File *[]byte) string
- func CloneDirectory(origin, destiny string)
- func CreateFolderIfNotExist(folderPath string) error
- func DeleteIfFolderSizeExceeds(folderPath string, maxSizeMB int64) error
- type File
- func (File) AttachJsFunctions() string
- func (f File) Create(w http.ResponseWriter, r *http.Request)
- func (f File) Delete(w http.ResponseWriter, r *http.Request)
- func (f File) DeleteFilesFromHDDandDB(data_with_id_file ...map[string]string) (string, bool)
- func (File) FieldAddEventListener(field_name string) string
- func (f File) GetAllDataFromDB(data_with_id_file ...map[string]string) ([]map[string]string, string, bool)
- func (f File) GetPathFileByID(id_file string) (string, bool)
- func (File) HtmlName() string
- func (File) InputValueChanges() string
- func (File) Name() string
- func (f File) Object() model.Object
- func (f File) ReadAll(folder_id string, w http.ResponseWriter, r *http.Request)
- func (f File) ReadAllFilesID(folder_id string) ([]map[string]string, string, bool)
- func (f File) ReadFile(id_file string, w http.ResponseWriter, r *http.Request)
- func (f File) ReadOne(id_file string, w http.ResponseWriter, r *http.Request)
- func (File) SelectedTargetChanges() string
- func (f File) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (f File) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveType ¶
func CloneDirectory ¶
func CloneDirectory(origin, destiny string)
func CreateFolderIfNotExist ¶
Types ¶
type File ¶
type File struct { *objectdb.Connection // contains filtered or unexported fields }
func New ¶
root_folder ej: "./app_files", "./static_files" extensions: ej: ".jpg, .png, .jpeg" max_files ej: 1,4 6.. max_kb_size ej: 100, 400
func (File) AttachJsFunctions ¶
func (File) Create ¶ added in v0.0.2
func (f File) Create(w http.ResponseWriter, r *http.Request)
Create upload files http handler
func (File) DeleteFilesFromHDDandDB ¶
func (File) FieldAddEventListener ¶
func (File) GetAllDataFromDB ¶
func (File) InputValueChanges ¶
func (File) ReadAllFilesID ¶
func (File) SelectedTargetChanges ¶
Click to show internal directories.
Click to hide internal directories.