prototype

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NeedsDownloadProfileName = "requiem-overhaul"

NeedsDownloadProfileName names the one canned profile (see Load) whose Mods list references an ID absent from InstalledMods, so prototypeProvider.PlanProfileSwitch (actions_provider.go) can produce a NeedsDownloads plan and --prototype mode can demo the refusal state without any core.Service.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Game          Game
	Profile       Profile
	Stats         Stats
	InstalledMods []Mod
	SearchResults []Mod
	Profiles      []Profile
}

Data is the fake, side-effect-free data set used for visual TUI iteration.

func Load

func Load() Data

Load returns static demo data. It must never touch disk, network, DB, or APIs.

type Game

type Game struct {
	ID   string
	Name string
}

type Mod

type Mod struct {
	ID              string // stable, invented demo identifier - addresses the mod alongside Source for action calls
	Name            string
	Source          string
	Author          string
	Version         string
	Status          string
	Summary         string
	Downloads       int64
	Endorsements    int64
	HasEndorsements bool
}

type Profile

type Profile struct {
	Name     string
	Active   bool
	ModCount int
	// Mods is optional: installed-mod IDs this profile references, used
	// only to seed PlanProfileSwitch's NeedsDownloads demo scenario (see
	// NeedsDownloadProfileName below and actions_provider.go's
	// prototypeProvider.PlanProfileSwitch). Every other canned profile
	// leaves this nil - the alternating Enable/Disable plan logic never
	// consults it.
	Mods []string
}

type Stats

type Stats struct {
	Installed int
	Enabled   int
	Updates   int
	Conflicts int
}

Jump to

Keyboard shortcuts

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