Documentation ¶
Index ¶
- Constants
- Variables
- func CopyFile(src, dst string) (err error)
- func Execute()
- type CrashEvent
- type GameLogEvent
- type InitialStatusEvent
- type LocalState
- type LogForwarder
- type MinepkgMapping
- type OutdatedChecker
- type ProgressEvent
- type Root
- type StateResponse
- type StatsEvent
- type StatsState
- type TheThing
Constants ¶
View Source
const MS_AUTH_CLIENT_ID = "056aa695-390f-4d6d-a1b6-fc52d083ccc9"
Variables ¶
View Source
var ( StatusIdle = "idle" StatusStarting = "starting" StatusRunningLoading = "running:loading" StatusRunningReady = "running:ready" )
View Source
var ( // Version is the current version. it should be set by goreleaser Version string // commit is also set by goreleaser (in main.go) Commit string )
View Source
var (
MinecraftVersionFlag string
)
Functions ¶
Types ¶
type CrashEvent ¶ added in v0.1.8
type GameLogEvent ¶ added in v0.1.11
type InitialStatusEvent ¶ added in v0.1.10
type LocalState ¶ added in v0.1.10
type LocalState struct { Status string `json:"status"` Stats StatsState `json:"stats"` }
type LogForwarder ¶ added in v0.1.8
type LogForwarder struct { TheThing *TheThing // contains filtered or unexported fields }
type MinepkgMapping ¶
MinepkgMapping is a server mapping (very unfinished)
type OutdatedChecker ¶ added in v0.1.19
type OutdatedChecker struct { Context context.Context Instance *instances.Instance // contains filtered or unexported fields }
func (*OutdatedChecker) Check ¶ added in v0.1.19
func (o *OutdatedChecker) Check() error
func (*OutdatedChecker) ProgressPercent ¶ added in v0.1.19
func (o *OutdatedChecker) ProgressPercent() float64
ProgressPercent returns the current progress of the check in percent
func (*OutdatedChecker) ProgressValue ¶ added in v0.1.19
func (o *OutdatedChecker) ProgressValue() int
func (*OutdatedChecker) Total ¶ added in v0.1.19
func (o *OutdatedChecker) Total() int
Total returns the total number of packages to check
type ProgressEvent ¶ added in v0.1.8
type Root ¶ added in v0.1.5
type Root struct { HTTPClient *http.Client MinepkgAPI *api.MinepkgClient NonInteractive bool ProviderStore *provider.Store AutoCompleter *autocomplete.AutoCompleter // contains filtered or unexported fields }
type StateResponse ¶ added in v0.1.11
type StateResponse struct { Status string `json:"status,omitempty"` Stats StatsState `json:"stats,omitempty"` Manifest *manifest.Manifest `json:"manifest,omitempty"` Logs []*GameLogEvent `json:"logs,omitempty"` }
type StatsEvent ¶ added in v0.1.8
type StatsEvent struct { Memory *mem.VirtualMemoryStat `json:"memory"` ProcessMemoryPercent float32 `json:"processMemoryPercent"` ProcessMemoryMiB float32 `json:"processMemoryMiB"` ProcessCPUPercent float64 `json:"processCPUPercent"` }
type StatsState ¶ added in v0.1.10
type TheThing ¶ added in v0.1.10
type TheThing struct { *remote.Connection State *LocalState // contains filtered or unexported fields }
func (*TheThing) WriteLog ¶ added in v0.1.11
func (t *TheThing) WriteLog(log *GameLogEvent)
writes log stores the last 100 lines of logs in `logsBuffer`
Source Files ¶
Click to show internal directories.
Click to hide internal directories.