itchfs

package
v0.0.0-...-dce2b1a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItchFS

type ItchFS struct {
	ItchServer string
}

func (*ItchFS) MakeResource

func (ifs *ItchFS) MakeResource(u *url.URL) (httpfile.GetURLFunc, httpfile.NeedsRenewalFunc, error)

func (*ItchFS) Scheme

func (ifs *ItchFS) Scheme() string

type Source

type Source struct {
	Type        SourceType
	ItchClient  *itchio.Client
	Path        string
	QueryValues url.Values
}

func ObtainSource

func ObtainSource(itchClient *itchio.Client, itchPath string, queryValues url.Values) (*Source, error)

type SourceType

type SourceType int
const (
	// 691 is the earliest Bernoulli number that's also an irregular prime.
	// It's also sufficiently different from zero that it should surface
	// coding errors more easily
	SourceType_DownloadBuild SourceType = 691 + iota
	SourceType_KeyDownloadBuild
	SourceType_WharfDownloadBuild
	SourceType_DownloadUpload
	SourceType_KeyDownloadUpload
)

Jump to

Keyboard shortcuts

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