manager

package
v0.0.0-...-4fbc73c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EServerManager

type EServerManager struct {
	Dir string
}

EServerManager for process files

func (*EServerManager) AddFile

func (mgr *EServerManager) AddFile(url string) (string, error)

AddFile starts file download and return name of file for fileinfo requests

func (*EServerManager) AddFileFromMultipart

func (mgr *EServerManager) AddFileFromMultipart(part *multipart.Part) *api.FileInfo

AddFileFromMultipart adds file from multipart.Part and returns information

func (*EServerManager) GetFileInfo

func (mgr *EServerManager) GetFileInfo(name string) *api.FileInfo

GetFileInfo checks status of file and returns information

func (*EServerManager) GetFilePath

func (mgr *EServerManager) GetFilePath(name string) (string, error)

GetFilePath returns path to file for serve

func (*EServerManager) Init

func (mgr *EServerManager) Init()

Init directories for EServerManager

func (*EServerManager) ListFileNames

func (mgr *EServerManager) ListFileNames() (result []string)

ListFileNames list downloaded files

Jump to

Keyboard shortcuts

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