curseforge

package
v3.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlphaFileType = ReleaseType(3)
View Source
var BetaFileType = ReleaseType(2)
View Source
var FabricInstallerUrl = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${installerVersion}/fabric-installer-${installerVersion}.jar"
View Source
var ForgeInstallerName = "forge-${mcVersion}-${version}-installer.jar"
View Source
var ForgeInstallerUrl = "https://maven.minecraftforge.net/net/minecraftforge/forge/${mcVersion}-${version}/forge-${mcVersion}-${version}-installer.jar"
View Source
var ImprovedFabricInstallerUrl = "https://meta.fabricmc.net/v2/versions/loader/${mcVersion}/${version}/${installerVersion}/server/jar"
View Source
var ReleaseFileType = ReleaseType(1)

Functions

func IsAllowedFile

func IsAllowedFile(i int) bool

Types

type Addon

type Addon struct {
	Id           uint
	Name         string
	DateCreated  time.Time
	DateModified time.Time
	DateReleased time.Time
	LatestFiles  []File `json:"latestFiles"`
}

type AddonResponse

type AddonResponse struct {
	Data Addon
}

type Category

type Category struct {
	Id               uint
	Name             string
	ParentCategoryId uint
	Slug             string
	ClassId          uint
}

type CurseForge

type CurseForge struct {
	ProjectId  uint
	FileId     uint
	JavaBinary string
}

func (CurseForge) Run

func (c CurseForge) Run(env pufferpanel.Environment) pufferpanel.OperationResult

type File

type File struct {
	Id                  uint
	IsAvailable         bool
	DisplayName         string
	FileName            string
	ReleaseType         ReleaseType
	FileStatus          int
	FileDate            time.Time
	FileLength          uint64
	DownloadCount       uint
	DownloadUrl         string
	AlternateFileId     uint
	GameVersions        []string
	IsServerPack        bool
	ServerPackFileId    uint
	ParentProjectFileId uint
}

type FileResponse

type FileResponse struct {
	Data File
}

type FilesResponse

type FilesResponse struct {
	PagedResponse
	Data []File
}

type Game

type Game struct {
	Id   uint
	Name string
	Slug string
}

type Manifest

type Manifest struct {
	Minecraft MinecraftManifest
}

type MinecraftManifest

type MinecraftManifest struct {
	Version    string
	ModLoaders []ModLoaderManifest
}

type ModLoaderManifest

type ModLoaderManifest struct {
	Id      string
	Primary bool
}

type OperationFactory

type OperationFactory struct {
	pufferpanel.OperationFactory
}
var Factory OperationFactory

func (OperationFactory) Create

func (of OperationFactory) Create(op pufferpanel.CreateOperation) (pufferpanel.Operation, error)

func (OperationFactory) Key

func (of OperationFactory) Key() string

type PagedResponse

type PagedResponse struct {
	Response
	Pagination Pagination
}

type Pagination

type Pagination struct {
	Index       int
	PageSize    int
	ResultCount int
	TotalCount  int
}

type ReleaseType

type ReleaseType int

type Response

type Response struct{}

Jump to

Keyboard shortcuts

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