Documentation
¶
Index ¶
- func Exists(name string) bool
- type StructAPI
- func (api *StructAPI) Build(name string, lim int) bool
- func (api *StructAPI) Create(p string) (*os.File, error)
- func (api *StructAPI) Download(min int, max int, i int, url string, body []string, filename string) bool
- func (api *StructAPI) ExtErr(err error) bool
- func (api *StructAPI) Get(url string) (int, string, int, bool)
- func (api *StructAPI) GetAPI(url string, filename string) (int, string, int, bool)
- func (api *StructAPI) GetCreateFolderTree(url string) (int, string, int, bool)
- func (api *StructAPI) HashFileMd5(filePath string) (string, error)
- func (api *StructAPI) Remove(name string, lim int)
- func (api *StructAPI) RemoveSimple(name string) bool
- func (api *StructAPI) Stick(pathFileLog string, insertData []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StructAPI ¶
StructAPI главная структура апи. можно указать максимальное количество потоков
func (*StructAPI) Download ¶
func (api *StructAPI) Download(min int, max int, i int, url string, body []string, filename string) bool
Download загружает часть
func (*StructAPI) GetAPI ¶
GetAPI получает готовую ссылку и имя файла от функций Get и GetAll, рассчитывает количество получившихся частей и загружает
func (*StructAPI) GetCreateFolderTree ¶
GetCreateFolderTree скачивает файл, создавая структуру директорий как на сервере
func (*StructAPI) HashFileMd5 ¶
HashFileMd5 возвращает md5 хеш
func (*StructAPI) RemoveSimple ¶
RemoveSimple удаляет указанный файл
Source Files
¶
Click to show internal directories.
Click to hide internal directories.