Versions in this module Expand all Collapse all v0 v0.0.14 Feb 2, 2021 v0.0.13 Jan 6, 2021 v0.0.12 Mar 5, 2020 v0.0.11 Dec 24, 2019 Changes in this version type FileDir + Debug map[string]interface{} v0.0.10 Dec 24, 2019 Changes in this version type ELFRequest + Mimes []string + QueryKey string type LocalFileVolume + func (f *LocalFileVolume) Search(path, key string, mimes ...string) (files []FileDir, err error) type Volume + Search func(path, key string, mimes ...string) ([]FileDir, error) v0.0.9 Dec 6, 2019 Changes in this version + const APIVERSION + const UPLOADMAXSIZE + var DefaultVolume = LocalFileVolume + func CreateHash(volumeId, path string) string + func Decode64(s string) (string, error) + func Encode64(s string) string + func GenerateID(path string) string + func GenerateTargetsMD5Key(targets ...string) string + func ReadWritePem(pem os.FileMode) (readable, writable byte) + type ChunkRange struct + Length int64 + Offset int64 + TotalSize int64 + type ELFRequest struct + Bg string + Chunk string + Cid int + Cmd string + Content string + Cut bool + Degree int + Dirs []string + Download string + Dst string + Height int + Init bool + Intersect []string + MakeDir bool + Mode string + Name string + Quality int + Range string + Renames []string + Src string + Suffix string + Target string + Targets []string + Tree bool + Type string + UploadPath []string + Width int + X int + Y int + type ElFinderConnector struct + Volumes map[string]Volume + func NewElFinderConnector(vs Volumes) *ElFinderConnector + func NewElFinderConnectorWithOption(vs Volumes, option map[string]string) *ElFinderConnector + func (elf *ElFinderConnector) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type ElfResponse struct + Added []FileDir + Api float64 + Changed []FileDir + Chunkmerged string + Content string + Cwd FileDir + Dim string + Error interface{} + Files []FileDir + Hashes map[string]string + Images map[string]string + List []string + Name string + NetDrivers []string + Options options + Removed []string + Size int64 + Tree []FileDir + UplMaxFile string + UplMaxSize string + Url string + Warning []string + Zipdl map[string]string + type FileDir struct + Alias string + Cssclr string + Dim string + Dirs byte + Hash string + Isowner bool + Isroot byte + Locked byte + Mime string + Name string + Netkey string + Options options + Phash string + Read byte + Size int64 + Thash string + Tmb string + Ts int64 + Volumeid string + Write byte + type LocalFileVolume struct + Id string + func NewLocalVolume(path string) *LocalFileVolume + func (f *LocalFileVolume) GetFile(path string) (reader io.ReadCloser, err error) + func (f *LocalFileVolume) ID() string + func (f *LocalFileVolume) Info(path string) (FileDir, error) + func (f *LocalFileVolume) List(path string) []FileDir + func (f *LocalFileVolume) MakeDir(dir, newDirname string) (FileDir, error) + func (f *LocalFileVolume) MakeFile(dir, newFilename string) (FileDir, error) + func (f *LocalFileVolume) MergeChunk(cid, total int, dirPath, uploadPath, filename string) (FileDir, error) + func (f *LocalFileVolume) Parents(path string, dep int) []FileDir + func (f *LocalFileVolume) Paste(dir, filename, suffix string, reader io.ReadCloser) (FileDir, error) + func (f *LocalFileVolume) Remove(path string) error + func (f *LocalFileVolume) Rename(oldNamePath, newName string) (FileDir, error) + func (f *LocalFileVolume) RootFileDir() FileDir + func (f *LocalFileVolume) UploadChunk(cid int, dirPath, uploadPath, filename string, rangeData ChunkRange, ...) error + func (f *LocalFileVolume) UploadFile(dirPath, uploadPath, filename string, reader io.Reader) (FileDir, error) + type Volume interface + GetFile func(path string) (reader io.ReadCloser, err error) + ID func() string + Info func(path string) (FileDir, error) + List func(path string) []FileDir + MakeDir func(dir, newDirname string) (FileDir, error) + MakeFile func(dir, newFilename string) (FileDir, error) + MergeChunk func(cid, total int, dirPath, uploadPath, filename string) (FileDir, error) + Parents func(path string, dep int) []FileDir + Paste func(dir, filename, suffix string, reader io.ReadCloser) (FileDir, error) + Remove func(path string) error + Rename func(oldNamePath, newname string) (FileDir, error) + RootFileDir func() FileDir + UploadChunk func(cid int, dirPath, uploadPath, filename string, rangeData ChunkRange, ...) error + UploadFile func(dir, uploadPath, filename string, reader io.Reader) (FileDir, error) + type Volumes []Volume v0.0.2 Jul 29, 2019 v0.0.1 Jul 23, 2019