files

package
v0.0.0-...-c2689a6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_GET_TIMEOUT = 7200 * time.Second
)

Variables

This section is empty.

Functions

func CollectSrcFileInfos

func CollectSrcFileInfos(resourcesInfo *ResourcesInfo) ([]FileInfo, []FileInfo)

func FakeWriteFilesToZip

func FakeWriteFilesToZip(srcFiles []FileInfo) int

func RealWriteFilesToZip

func RealWriteFilesToZip(w http.ResponseWriter, srcFiles []FileInfo)

Types

type FileInfo

type FileInfo struct {
	Filename string `json:"filename"`
	IsFolder bool   `json:"is_empty_folder"`
	URL      string `json:"url"`
	Size     int64  `json:"size,omitempty"`
}

type ResourcesInfo

type ResourcesInfo struct {
	FileInfos []FileInfo `json:"file_infos"`
	Token     string     `json:"token"`
	Timestamp string     `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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