cache

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 17 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 GetCache

func GetCache() (*xsync.MapOf[string, []File], error)

func LoadCache

func LoadCache() (*xsync.MapOf[string, []File], error)

Types

type File

type File struct {
	Icon         *string
	ModReference string
	Hash         string
	Plugin       UPlugin
	Size         int64
}

func GetCacheMod

func GetCacheMod(mod string) ([]File, 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"`
	Plugins      []Plugins `json:"Plugins"`
}

Jump to

Keyboard shortcuts

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