manager

package
v10.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItchPlatformOSX     ItchPlatform = "osx"
	ItchPlatformWindows              = "windows"
	ItchPlatformLinux                = "linux"
	ItchPlatformUnknown              = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationAction

type ClassificationAction string
const (
	ClassificationActionOpen   ClassificationAction = "open"
	ClassificationActionLaunch                      = "launch"
)

type ItchPlatform

type ItchPlatform string

type NarrowDownUploadsResult

type NarrowDownUploadsResult struct {
	InitialUploads []*itchio.Upload
	Uploads        []*itchio.Upload
	HadUntagged    bool
	HadWrongFormat bool
	HadWrongArch   bool
}

func NarrowDownUploads

func NarrowDownUploads(uploads []*itchio.Upload, game *itchio.Game, runtime *Runtime) *NarrowDownUploadsResult

type Platforms

type Platforms struct {
	Linux   bool
	Windows bool
	OSX     bool
	Android bool
}

func PlatformsForGame

func PlatformsForGame(game *itchio.Game) *Platforms

func PlatformsForUpload

func PlatformsForUpload(upload *itchio.Upload) *Platforms

func (*Platforms) ExclusivityScore

func (p *Platforms) ExclusivityScore(rt *Runtime) int64

UploadExclusivityScore returns a higher value the closest an upload is to being *only for this platform*

func (*Platforms) IsCompatible

func (p *Platforms) IsCompatible(rt *Runtime) bool

type Runtime

type Runtime struct {
	Platform ItchPlatform `json:"platform"`
	Is64     bool         `json:"is64"`
}

Runtime describes an os-arch combo in a convenient way

func CurrentRuntime

func CurrentRuntime() *Runtime

func (*Runtime) Arch

func (r *Runtime) Arch() string

func (*Runtime) String

func (r *Runtime) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL