curseapi

package
v0.0.0-...-9dc8e36 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileId2downloadlink(id string) (string, error)

Types

type Dependencies

type Dependencies struct {
	AddonId int `json:"modId"`
	Type    int `json:"relationType"`
}

type ErrHttpCode

type ErrHttpCode struct {
	Code int
}

func (ErrHttpCode) Error

func (e ErrHttpCode) Error() string

type Files

type Files struct {
	ID           int            `json:"id"`
	FileName     string         `json:"fileName"`
	FileDate     string         `json:"fileDate"`
	Dependencies []Dependencies `json:"dependencies"`
	DownloadUrl  string         `json:"downloadUrl"`
	GameVersion  []string       `json:"gameVersions"`
	ReleaseType  int            `json:"releaseType"`
}

func Addonfiles

func Addonfiles(addonID, gameVersion string) ([]Files, error)

type GameVersionFiles

type GameVersionFiles struct {
	GameVersion     string `json:"gameVersion"`
	ProjectFileId   int    `json:"fileId"`
	ProjectFileName string `json:"filename"`
}

type Modinfo

type Modinfo struct {
	Name                   string             `json:"name"`
	ID                     int                `json:"id"`
	GameVersionLatestFiles []GameVersionFiles `json:"latestFilesIndexes"`
	Links                  struct {
		WebsiteUrl string `json:"websiteUrl"`
	} `json:"links"`
	Summary string `json:"summary"`
}

func AddonInfo

func AddonInfo(addonID string) (Modinfo, error)

func Searchmod

func Searchmod(key string, index string, sectionId int) ([]Modinfo, error)

Jump to

Keyboard shortcuts

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