types

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: GPL-3.0, LGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckUpdate

type CheckUpdate struct {
	IsUpdate bool   `json:"isUpdate"`
	Version  string `json:"version"`
	Body     string `json:"body"`
}

type ContentRoots

type ContentRoots struct {
	Base          string `json:"base"`
	UsersRoot     string `json:"usersRoot"`
	ResourcePacks string `json:"resourcePacks"`
	BehaviorPacks string `json:"behaviorPacks"`
	IsIsolation   bool   `json:"isIsolation"`
	IsPreview     bool   `json:"isPreview"`
}

type ExtractProgress

type ExtractProgress struct {
	Dir           string `json:"dir"`
	Files         int64  `json:"files"`
	Bytes         int64  `json:"bytes"`
	TotalBytes    int64  `json:"totalBytes"`
	GlobalCurrent int64  `json:"global_current"`
	GlobalTotal   int64  `json:"global_total"`
	CurrentFile   string `json:"currentFile"`
	Ts            int64  `json:"ts"`
}

type FileEntry

type FileEntry struct {
	Name  string `json:"name"`
	Path  string `json:"path"`
	IsDir bool   `json:"isDir"`
	Size  int64  `json:"size"`
}

type FilesDroppedEvent added in v0.3.0

type FilesDroppedEvent struct {
	Files  []string `json:"files"`
	Target string   `json:"target"`
}

type InstanceBackupArchiveInfo added in v0.3.8

type InstanceBackupArchiveInfo struct {
	FormatVersion         int                            `json:"formatVersion"`
	Name                  string                         `json:"name"`
	ArchivePath           string                         `json:"archivePath"`
	ArchiveName           string                         `json:"archiveName"`
	GameVersion           string                         `json:"gameVersion"`
	Type                  string                         `json:"type"`
	EnableIsolation       bool                           `json:"enableIsolation"`
	CreatedAt             string                         `json:"createdAt"`
	IncludedScopes        []string                       `json:"includedScopes"`
	ScopeModes            map[string]string              `json:"scopeModes"`
	Scopes                []InstanceBackupArchiveScope   `json:"scopes"`
	ModsLIPPackages       []InstanceBackupModsLIPPackage `json:"modsLipPackages"`
	RawModFolders         []string                       `json:"rawModFolders"`
	BedrockWhitelistRoots []string                       `json:"bedrockWhitelistRoots"`
	ErrorCode             string                         `json:"errorCode"`
}

type InstanceBackupArchiveScope added in v0.3.8

type InstanceBackupArchiveScope struct {
	Key      string   `json:"key"`
	Label    string   `json:"label"`
	Mode     string   `json:"mode"`
	Warnings []string `json:"warnings,omitempty"`
}

type InstanceBackupInfo added in v0.3.8

type InstanceBackupInfo struct {
	Name      string                `json:"name"`
	BackupDir string                `json:"backupDir"`
	Scopes    []InstanceBackupScope `json:"scopes"`
	ErrorCode string                `json:"errorCode"`
}

type InstanceBackupModsLIPPackage added in v0.3.8

type InstanceBackupModsLIPPackage struct {
	Identifier        string   `json:"identifier"`
	Version           string   `json:"version"`
	ExplicitInstalled bool     `json:"explicitInstalled"`
	Folders           []string `json:"folders"`
}

type InstanceBackupRequest added in v0.3.8

type InstanceBackupRequest struct {
	Scopes          []string                       `json:"scopes"`
	ScopeModes      map[string]string              `json:"scopeModes"`
	ModsLIPPackages []InstanceBackupModsLIPPackage `json:"modsLipPackages"`
}

type InstanceBackupRestoreConflict added in v0.3.8

type InstanceBackupRestoreConflict struct {
	ID             string                                   `json:"id"`
	ScopeKey       string                                   `json:"scopeKey"`
	ScopeLabel     string                                   `json:"scopeLabel"`
	Path           string                                   `json:"path"`
	SourceType     string                                   `json:"sourceType"`
	TargetType     string                                   `json:"targetType"`
	IdentityKind   string                                   `json:"identityKind"`
	IdentityKey    string                                   `json:"identityKey"`
	BackupPath     string                                   `json:"backupPath"`
	CurrentPath    string                                   `json:"currentPath"`
	BackupSummary  string                                   `json:"backupSummary"`
	CurrentSummary string                                   `json:"currentSummary"`
	DiffFields     []InstanceBackupRestoreConflictDiffField `json:"diffFields,omitempty"`
}

type InstanceBackupRestoreConflictDiffField added in v0.3.8

type InstanceBackupRestoreConflictDiffField struct {
	Key          string `json:"key"`
	Label        string `json:"label"`
	BackupValue  string `json:"backupValue"`
	CurrentValue string `json:"currentValue"`
}

type InstanceBackupRestoreConflictInfo added in v0.3.8

type InstanceBackupRestoreConflictInfo struct {
	ArchivePath    string                          `json:"archivePath"`
	IncludedScopes []string                        `json:"includedScopes"`
	Conflicts      []InstanceBackupRestoreConflict `json:"conflicts"`
	ErrorCode      string                          `json:"errorCode"`
}

type InstanceBackupRestoreProgress added in v0.3.8

type InstanceBackupRestoreProgress struct {
	Phase       string `json:"phase"`
	CurrentStep int    `json:"currentStep"`
	TotalSteps  int    `json:"totalSteps"`
	ScopeKey    string `json:"scopeKey,omitempty"`
	ScopeLabel  string `json:"scopeLabel,omitempty"`
	Ts          int64  `json:"ts"`
}

type InstanceBackupRestoreRequest added in v0.3.8

type InstanceBackupRestoreRequest struct {
	ArchivePath         string                            `json:"archivePath"`
	Scopes              []string                          `json:"scopes"`
	ConflictResolutions []InstanceBackupRestoreResolution `json:"conflictResolutions,omitempty"`
}

type InstanceBackupRestoreResolution added in v0.3.8

type InstanceBackupRestoreResolution struct {
	ConflictID string `json:"conflictId"`
	Choice     string `json:"choice"`
}

type InstanceBackupRestoreResult added in v0.3.8

type InstanceBackupRestoreResult struct {
	ArchivePath    string                             `json:"archivePath"`
	Status         string                             `json:"status"`
	IncludedScopes []string                           `json:"includedScopes"`
	ScopeResults   []InstanceBackupRestoreScopeResult `json:"scopeResults"`
	ErrorCode      string                             `json:"errorCode"`
}

type InstanceBackupRestoreScopeResult added in v0.3.8

type InstanceBackupRestoreScopeResult struct {
	Key       string   `json:"key"`
	Label     string   `json:"label"`
	Mode      string   `json:"mode"`
	Status    string   `json:"status"`
	ErrorCode string   `json:"errorCode"`
	Warnings  []string `json:"warnings,omitempty"`
	Details   []string `json:"details,omitempty"`
}

type InstanceBackupResult added in v0.3.8

type InstanceBackupResult struct {
	ArchivePath    string   `json:"archivePath"`
	BackupDir      string   `json:"backupDir"`
	IncludedScopes []string `json:"includedScopes"`
	ErrorCode      string   `json:"errorCode"`
}

type InstanceBackupScope added in v0.3.8

type InstanceBackupScope struct {
	Key         string                    `json:"key"`
	Label       string                    `json:"label"`
	Path        string                    `json:"path"`
	Size        int64                     `json:"size"`
	Selectable  bool                      `json:"selectable"`
	Exists      bool                      `json:"exists"`
	Shared      bool                      `json:"shared"`
	Modes       []InstanceBackupScopeMode `json:"modes,omitempty"`
	DefaultMode string                    `json:"defaultMode"`
	Warnings    []string                  `json:"warnings,omitempty"`
}

type InstanceBackupScopeMode added in v0.3.8

type InstanceBackupScopeMode struct {
	Key        string `json:"key"`
	Path       string `json:"path"`
	Size       int64  `json:"size"`
	Selectable bool   `json:"selectable"`
	Warning    string `json:"warning,omitempty"`
}

type LIPPackageInstallState added in v0.3.7

type LIPPackageInstallState struct {
	Identifier        string `json:"identifier"`
	PackageRef        string `json:"packageRef"`
	Installed         bool   `json:"installed"`
	ExplicitInstalled bool   `json:"explicitInstalled"`
	InstalledVersion  string `json:"installedVersion"`
	Error             string `json:"error"`
}

type LIPPackageInstallStateEntry added in v0.3.8

type LIPPackageInstallStateEntry struct {
	IdentifierKey string                 `json:"identifierKey"`
	State         LIPPackageInstallState `json:"state"`
}

type LanguageJson

type LanguageJson struct {
	Code     string `json:"code"`
	Language string `json:"language"`
}

type LevelDatField

type LevelDatField struct {
	Name        string   `json:"name"`
	Tag         string   `json:"tag"`
	ValueString string   `json:"valueString"`
	ValueJSON   string   `json:"valueJSON"`
	IsBoolLike  bool     `json:"isBoolLike"`
	InData      bool     `json:"inData"`
	Path        []string `json:"path,omitempty"`
}

type LocalVersion

type LocalVersion struct {
	Name        string `json:"name"`
	Uuid        string `json:"uuid"`
	Path        string `json:"path"`
	Version     string `json:"version"`
	IsLaunched  bool   `json:"isLaunched"`
	IsPreview   bool   `json:"isPreview"`
	IsPreLoader bool   `json:"isPreLoader"`
}

type MinecraftVersion

type MinecraftVersion struct {
	Version   string `json:"version"`
	Uuid      string `json:"uuid"`
	Type      int    `json:"type"`
	SupportPL bool   `json:"supportPL"`
}

type MirrorTestResult

type MirrorTestResult struct {
	URL       string `json:"url"`
	LatencyMs int64  `json:"latencyMs"`
	Ok        bool   `json:"ok"`
	Status    int    `json:"status"`
	Error     string `json:"error,omitempty"`
}

type ModInfo

type ModInfo struct {
	Name    string `json:"name"`
	Entry   string `json:"entry"`
	Version string `json:"version"`
	Type    string `json:"type"`
	Author  string `json:"author,omitempty"`
	Folder  string `json:"folder"`
}

type ModManifestJson

type ModManifestJson struct {
	Name    string `json:"name"`
	Entry   string `json:"entry"`
	Version string `json:"version"`
	Type    string `json:"type"`
	Author  string `json:"author,omitempty"`
}

type PackInfo

type PackInfo struct {
	Name             string `json:"name"`
	Description      string `json:"description"`
	Version          string `json:"version"`
	MinEngineVersion string `json:"minEngineVersion"`
	IconDataUrl      string `json:"iconDataUrl"`
	Path             string `json:"path"`
}

type PreloaderJson

type PreloaderJson struct {
	ColorLog bool   `json:"colorLog"`
	LogLevel int    `json:"logLevel"`
	LogPath  string `json:"logPath"`
	ModsPath string `json:"modsPath"`
	Version  int    `json:"version"`
}

type ProcessInfo added in v0.1.6

type ProcessInfo struct {
	Pid         int    `json:"pid"`
	ExePath     string `json:"exePath"`
	IsLauncher  bool   `json:"isLauncher"`
	VersionName string `json:"versionName"`
}

type Server added in v0.1.6

type Server struct {
	Index     string `json:"index"`
	Name      string `json:"name"`
	IP        string `json:"ip"`
	Port      string `json:"port"`
	Timestamp int64  `json:"timestamp"`
}

type VersionJson

type VersionJson struct {
	Name        string `json:"name"`
	Uuid        string `json:"uuid"`
	Version     string `json:"version"`
	IsPreview   bool   `json:"isPreview"`
	IsPreLoader bool   `json:"isPreLoader"`
}

Jump to

Keyboard shortcuts

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