Discover Packages
github.com/gamejolt/cli
pkg
api
files
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Mar 11, 2021
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
AddResult is the result from the /files/add endpoint
func Add(client *cliHttp .SimpleClient , gameID, packageID int , releaseVersion *semver .Version , isDownloadable bool , size int64 , checksum string , forceRestart bool , filepath string , startByte, chunkSize int64 , bar *pb .ProgressBar ) (*AddResult , error )
Add sends a new POST /files/add request
type GetResult struct {
Status string `json:"status"`
FileID int `json:"file_id,omitempty"`
Start int64 `json:"start,omitempty"`
Error *models .Error `json:"error,omitempty"`
}
GetResult is the result from the /files endpoint
Get sends a new GET /files/add request
Source Files
¶
Click to show internal directories.
Click to hide internal directories.