mod

package
v1.0.80 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllModsFromAPI

func GetAllModsFromAPI() ([]models.ModSchema, error)

func GetDBModCount

func GetDBModCount(f ModQueryFilter) (int64, error)

GetDBModCount returns the number of catalogue mods matching the given filter, so paging reflects the same result set the list is drawn from.

func GetModCountFromAPI

func GetModCountFromAPI() (int, error)

func GetModsFromAPI

func GetModsFromAPI(offset int) ([]models.ModSchema, error)

func GetModsFromDB

func GetModsFromDB(page int, sort string, direction string, f ModQueryFilter) (*[]models.ModSchema, error)

func InitModService

func InitModService()

func ShutdownModService

func ShutdownModService() error

func UpdateModsInDB

func UpdateModsInDB() error

Types

type ModQueryFilter added in v1.0.78

type ModQueryFilter struct {
	Search        string
	ShowAvailable bool
	ShowInstalled bool
	OnlyUpdatable bool
	IncludeHidden bool
	InstalledRefs []string
	UpdatableRefs []string
}

ModQueryFilter describes the server-side mod catalogue filtering. The status group (ShowAvailable / ShowInstalled) selects which install states appear; OnlyUpdatable further narrows to installed mods that have an update; hidden mods are excluded unless IncludeHidden is set. InstalledRefs / UpdatableRefs are the agent's mod references for the current server.

Jump to

Keyboard shortcuts

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