Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddResult ¶
type AddResult struct {
GetResult
Build *models.GameBuild `json:"build,omitempty"` // Only returned once when the file has been fully uploaded
}
AddResult is the result from the /files/add endpoint
type GetResult ¶
type GetResult struct {
Status string `json:"status"`
FileID int `json:"file_id,omitempty"` // Returned for partial/in progress file uploads
Start int64 `json:"start,omitempty"`
Error *models.Error `json:"error,omitempty"`
}
GetResult is the result from the /files endpoint
type RestartResult ¶ added in v0.5.0
type RestartResult struct {
FileID int `json:"file_id,omitempty"` // The existing file upload that was restarted
Error *models.Error `json:"error,omitempty"`
}
func Restart ¶ added in v0.5.0
func Restart(client *cliHttp.SimpleClient, gameID int, size int64, checksum string) (*RestartResult, error)
Restart sends a new POST /files/add request that restarts an existing upload.
Click to show internal directories.
Click to hide internal directories.