Documentation
¶
Index ¶
- type GameCredentials
- type InstallParams
- type LFObjectCodec
- type LogNotification
- type OperationProgressNotification
- type OperationResult
- type OperationResumeParams
- type OperationStartParams
- type PickUploadParams
- type PickUploadResult
- type Server
- type TestDoubleRequest
- type TestDoubleResult
- type TestDoubleTwiceRequest
- type TestDoubleTwiceResult
- type VersionGetParams
- type VersionGetResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameCredentials ¶
type GameCredentials struct { Server string `json:"server"` APIKey string `json:"apiKey"` DownloadKey int64 `json:"downloadKey"` }
GameCredentials contains all the credentials required to make API requests including the download key if any
type InstallParams ¶
type InstallParams struct { Game *itchio.Game `json:"game"` InstallFolder string `json:"installFolder"` Upload *itchio.Upload `json:"upload"` Build *itchio.Build `json:"build"` Credentials *GameCredentials `json:"credentials"` }
InstallParams contains all the parameters needed to perform an installation for a game
type LFObjectCodec ¶
type LFObjectCodec struct{}
func (LFObjectCodec) ReadObject ¶
func (LFObjectCodec) ReadObject(stream *bufio.Reader, v interface{}) error
func (LFObjectCodec) WriteObject ¶
func (LFObjectCodec) WriteObject(stream io.Writer, obj interface{}) error
type LogNotification ¶
Log
type OperationProgressNotification ¶
type OperationProgressNotification struct { Progress float64 `json:"progress"` ETA float64 `json:"eta,omitempty"` BPS int64 `json:"bps,omitempty"` }
Operation.Progress Sent periodically to inform on the current state an operation
type OperationResult ¶
type OperationResult struct { Success bool `json:"success"` InstallResult interface{} `json:"installResult,omitempty"` ErrorMessage string `json:"errorMessage,omitempty"` ErrorStack string `json:"errorStack,omitempty"` }
Result for
- Operation.Start
- Operation.Resume
type OperationResumeParams ¶
type OperationResumeParams struct {
StagingFolder string `json:"stagingFolder"`
}
Operation.Resume
type OperationStartParams ¶
type OperationStartParams struct { StagingFolder string `json:"stagingFolder"` Operation string `json:"operation"` InstallParams *InstallParams `json:"installParams,omitempty"` }
Operation.Start
type PickUploadParams ¶
type PickUploadResult ¶
type PickUploadResult struct {
Index int64 `json:"index"`
}
type TestDoubleResult ¶
type TestDoubleResult struct {
Number int64 `json:"number"`
}
Result for Test.Double
type TestDoubleTwiceRequest ¶
type TestDoubleTwiceRequest struct {
Number int64 `json:"number"`
}
Test.DoubleTwice
type TestDoubleTwiceResult ¶
type TestDoubleTwiceResult struct {
Number int64 `json:"number"`
}
Result for Test.DoubleTwice
type VersionGetResult ¶
type VersionGetResult struct { // Something short, like `v8.0.0` Version string `json:"version"` // Something long, like `v8.0.0, built on Aug 27 2017 @ 01:13:55, ref d833cc0aeea81c236c81dffb27bc18b2b8d8b290` VersionString string `json:"versionString"` }
Result for Version.Get
Click to show internal directories.
Click to hide internal directories.