Documentation ¶
Index ¶
- Variables
- func CheckUpdate(params *buse.CheckUpdateParams, consumer *state.Consumer, ...) (*buse.CheckUpdateResult, error)
- func CleanDownloadsApply(params *buse.CleanDownloadsApplyParams, consumer *state.Consumer) (*buse.CleanDownloadsApplyResult, error)
- func CleanDownloadsSearch(params *buse.CleanDownloadsSearchParams, consumer *state.Consumer) (*buse.CleanDownloadsSearchResult, error)
- func ClientFromCredentials(credentials *buse.GameCredentials) (*itchio.Client, error)
- func DownloadInstallSource(consumer *state.Consumer, stageFolder string, ctx context.Context, ...) error
- func GameFindUploads(ctx *mansion.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (*buse.GameFindUploadsResult, error)
- func GameToString(game *itchio.Game) string
- func Install(oc *OperationContext, meta *MetaSubcontext) (*installer.InstallResult, error)
- func LogUpload(consumer *state.Consumer, u *itchio.Upload, b *itchio.Build)
- func MakeItchfsURL(params *ItchfsURLParams) string
- func NewStateConsumer(params *NewStateConsumerParams) (*state.Consumer, error)
- func Start(ctx context.Context, conn Conn, params *buse.OperationStartParams) (err error)
- type CommitInstallParams
- type Conn
- type InstallSubcontext
- type InstallSubcontextState
- type ItchfsURLParams
- type MetaSubcontext
- type NewStateConsumerParams
- type OperationContext
- func (oc *OperationContext) Consumer() *state.Consumer
- func (oc *OperationContext) EndProgress()
- func (oc *OperationContext) Load(s Subcontext)
- func (oc *OperationContext) Retire() error
- func (oc *OperationContext) Save(s Subcontext) error
- func (oc *OperationContext) StageFolder() string
- func (oc *OperationContext) StartProgress()
- func (oc *OperationContext) StartProgressWithInitialAndTotal(initialProgress float64, totalBytes int64)
- func (oc *OperationContext) StartProgressWithTotalBytes(totalBytes int64)
- type OperationError
- type Subcontext
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("operation was aborted")
ErrAborted is returned when the user stopped an operation outside the client's control and it should just be stopped.
View Source
var ErrCancelled = errors.New("operation was cancelled")
ErrCancelled is returned when the client asked for an operation to be cancelled
Functions ¶
func CheckUpdate ¶
func CleanDownloadsApply ¶
func CleanDownloadsApply(params *buse.CleanDownloadsApplyParams, consumer *state.Consumer) (*buse.CleanDownloadsApplyResult, error)
func CleanDownloadsSearch ¶
func CleanDownloadsSearch(params *buse.CleanDownloadsSearchParams, consumer *state.Consumer) (*buse.CleanDownloadsSearchResult, error)
func ClientFromCredentials ¶
func ClientFromCredentials(credentials *buse.GameCredentials) (*itchio.Client, error)
func DownloadInstallSource ¶
func GameFindUploads ¶
func GameToString ¶
func Install ¶
func Install(oc *OperationContext, meta *MetaSubcontext) (*installer.InstallResult, error)
func MakeItchfsURL ¶
func MakeItchfsURL(params *ItchfsURLParams) string
func NewStateConsumer ¶
func NewStateConsumer(params *NewStateConsumerParams) (*state.Consumer, error)
Types ¶
type CommitInstallParams ¶
type InstallSubcontext ¶
type InstallSubcontext struct {
// contains filtered or unexported fields
}
func (*InstallSubcontext) Data ¶
func (mt *InstallSubcontext) Data() interface{}
func (*InstallSubcontext) Key ¶
func (mt *InstallSubcontext) Key() string
type InstallSubcontextState ¶
type InstallSubcontextState struct { DownloadSessionId string `json:"downloadSessionId,omitempty"` InstallerInfo *installer.InstallerInfo `json:"installerInfo,omitempty"` IsAvailableLocally bool `json:"isAvailableLocally,omitempty"` FirstInstallResult *installer.InstallResult `json:"firstInstallResult,omitempty"` SecondInstallerInfo *installer.InstallerInfo `json:"secondInstallerInfo,omitempty"` }
type ItchfsURLParams ¶
type MetaSubcontext ¶
type MetaSubcontext struct {
// contains filtered or unexported fields
}
func (*MetaSubcontext) Data ¶
func (mt *MetaSubcontext) Data() interface{}
func (*MetaSubcontext) Key ¶
func (mt *MetaSubcontext) Key() string
type NewStateConsumerParams ¶
type OperationContext ¶
type OperationContext struct {
// contains filtered or unexported fields
}
func LoadContext ¶
func (*OperationContext) Consumer ¶
func (oc *OperationContext) Consumer() *state.Consumer
func (*OperationContext) EndProgress ¶
func (oc *OperationContext) EndProgress()
func (*OperationContext) Load ¶
func (oc *OperationContext) Load(s Subcontext)
func (*OperationContext) Retire ¶
func (oc *OperationContext) Retire() error
func (*OperationContext) Save ¶
func (oc *OperationContext) Save(s Subcontext) error
func (*OperationContext) StageFolder ¶
func (oc *OperationContext) StageFolder() string
func (*OperationContext) StartProgress ¶
func (oc *OperationContext) StartProgress()
func (*OperationContext) StartProgressWithInitialAndTotal ¶
func (oc *OperationContext) StartProgressWithInitialAndTotal(initialProgress float64, totalBytes int64)
func (*OperationContext) StartProgressWithTotalBytes ¶
func (oc *OperationContext) StartProgressWithTotalBytes(totalBytes int64)
type OperationError ¶
type OperationError struct { Type string `json:"type"` Code string `json:"code"` Message string `json:"message"` Operation string `json:"operation"` }
func (*OperationError) Error ¶
func (oe *OperationError) Error() string
func (*OperationError) Throw ¶
func (oe *OperationError) Throw() error
type Subcontext ¶
type Subcontext interface { // Key returns a unique string key used for storing // something under the context object Key() string // Data should return a pointer to the underlying struct // of the subcontext Data() interface{} }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.