Documentation ¶
Index ¶
- Variables
- func CheckDirectories() error
- func GetDownloadPath(filename string) string
- func GetResult(token, resType string, data interface{}) (bool, error)
- func GetResultPath(token string) string
- func GetUploadPath(filename string) string
- func OpenSourceMap(filename string) (*os.File, error)
- func PutResult(token, resType string, data ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// UploadDirectory is the path to place uploaded files.
UploadDirectory, _ = filepath.Abs("./uploads")
// ResultDirectory is the path to place result metadata files.
ResultDirectory, _ = filepath.Abs("./results")
// DownloadDirectory is the path to place downloadable files.
DownloadDirectory, _ = filepath.Abs("./downloads")
// SourceMapsDirectory is the path to source mapping files.
SourceMapsDirectory, _ = filepath.Abs("./sources")
)
Functions ¶
func CheckDirectories ¶
func CheckDirectories() error
CheckDirectories creates necessary data directories for processing uploads.
func GetDownloadPath ¶
GetDownloadPath returns the full path and URL to a downloadable file.
func GetResult ¶
GetResult reads a result from the specified token. Data argument should be a pointer receiver.
func GetResultPath ¶
GetResultPath returns the full path to a result file.
func GetUploadPath ¶
GetUploadPath returns the full path to an uploaded file.
func OpenSourceMap ¶
OpenSourceMap opens a source mapping file and returns it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.