eso

package
v0.0.0-...-644d0e7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessDirectory

func GuessDirectory() string

Types

type Addon

type Addon struct {
	Name           string
	Title          string
	Library        bool
	DisplayVersion string
	Version        int
	DependsOn      []Dependency
	Error          error
}

func InstalledAddons

func InstalledAddons(addonDir string) ([]*Addon, error)

func ReadAddon

func ReadAddon(dir string) *Addon

type Dependency

type Dependency struct {
	Name           string
	MinimumVersion int
}

type FileDetails

type FileDetails struct {
	DownloadUrl string `json:"downloadUri"`
	FileListEntry
}

type FileDetailsList

type FileDetailsList []FileDetails

func ParseFileDetailsList

func ParseFileDetailsList(reader io.Reader) (FileDetailsList, error)

type FileList

type FileList []FileListEntry

func ParseFileList

func ParseFileList(reader io.Reader) (FileList, error)

func (FileList) ByPath

func (f FileList) ByPath(path string) []FileListEntry

type FileListAddon

type FileListAddon struct {
	Path                 string   `json:"path"`
	Version              string   `json:"addOnVersion"`
	Api                  string   `json:"apiVersion"`
	Library              bool     `json:"library"`
	RequiredDependencies []string `json:"requiredDependencies"`
	OptionalDependencies []string `json:"optionalDependencies"`
}

type FileListEntry

type FileListEntry struct {
	Id               int             `json:"id"`
	CategoryId       int             `json:"categoryId"`
	Version          string          `json:"version"`
	LastUpdate       int64           `json:"lastUpdate"`
	Title            string          `json:"title"`
	Author           string          `json:"author"`
	FileInfoLink     string          `json:"fileInfoUri"`
	DonationLink     string          `json:"donationLink"`
	Downloads        int             `json:"downloads"`
	DownloadsMonthly int             `json:"downloadsMonthly"`
	Favourites       int             `json:"favorites"`
	GameVersions     []string        `json:"gameVersions"`
	Checksum         string          `json:"checksum"`
	Addons           []FileListAddon `json:"addons"`
	Library          bool            `json:"library"`
}

Jump to

Keyboard shortcuts

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