download_api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// FilesSaveDir 文件保存目录
	FilesSaveDir string
	// DownloadPath 下载请求路径
	DownloadPath string
}

type DownloadService

type DownloadService struct {
	*Config
}

func NewDownloadService

func NewDownloadService(cfg *Config) *DownloadService

func (*DownloadService) Download

func (this_ *DownloadService) Download(request *web.WebRequest) (res any, err error)

func (*DownloadService) GetFileSavePath

func (this_ *DownloadService) GetFileSavePath(filePath string) string

func (*DownloadService) GetWebApi

func (this_ *DownloadService) GetWebApi() (webApi *web.WebApi)

Jump to

Keyboard shortcuts

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