cache

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const IconFilename = "Resources/Icon128.png" // This is the path UE expects for the icon

Variables

This section is empty.

Functions

func DownloadOrCache

func DownloadOrCache(cacheKey string, hash string, url string, updates chan<- utils.GenericProgress, downloadSemaphore chan int) (*os.File, int64, error)

func GetCacheMods added in v0.6.0

func GetCacheMods() (*xsync.MapOf[string, Mod], error)

func LoadCacheMods added in v0.6.0

func LoadCacheMods() (*xsync.MapOf[string, Mod], error)

Types

type Mod added in v0.6.0

type Mod struct {
	ModReference  string
	Name          string
	Author        string
	Icon          *string
	LatestVersion string
}

func GetCacheMod

func GetCacheMod(mod string) (Mod, error)

type Plugins

type Plugins struct {
	Name       string `json:"Name"`
	SemVersion string `json:"SemVersion"`
	Enabled    bool   `json:"Enabled"`
	BasePlugin bool   `json:"BasePlugin"`
	Optional   bool   `json:"Optional"`
}

type UPlugin

type UPlugin struct {
	SemVersion   string    `json:"SemVersion"`
	FriendlyName string    `json:"FriendlyName"`
	Description  string    `json:"Description"`
	CreatedBy    string    `json:"CreatedBy"`
	GameVersion  string    `json:"GameVersion"`
	Plugins      []Plugins `json:"Plugins"`
}

Jump to

Keyboard shortcuts

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