Documentation
¶
Index ¶
- func GetAllModsFromAPI() ([]models.ModSchema, error)
- func GetDBModCount(f ModQueryFilter) (int64, error)
- func GetModCountFromAPI() (int, error)
- func GetModsFromAPI(offset int) ([]models.ModSchema, error)
- func GetModsFromDB(page int, sort string, direction string, f ModQueryFilter) (*[]models.ModSchema, error)
- func InitModService()
- func ShutdownModService() error
- func UpdateModsInDB() error
- type ModQueryFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllModsFromAPI ¶
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 GetModsFromDB ¶
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.
Click to show internal directories.
Click to hide internal directories.