info

package
v0.0.0-...-dffad01 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreInfo

type CoreInfo struct {
	Name             string
	SupportMcVersion []string
	HistoryVersion   map[string]CoreVersionInfo
}

func NewCoreInfo

func NewCoreInfo() *CoreInfo

func (*CoreInfo) GetCoreBuildListSingleMCVersion

func (receiver *CoreInfo) GetCoreBuildListSingleMCVersion(setupData setup.Client) []error

func (*CoreInfo) GetCoreSupportMcList

func (receiver *CoreInfo) GetCoreSupportMcList(setupData setup.Client) []error

func (*CoreInfo) GetTargetBuildInfo

func (receiver *CoreInfo) GetTargetBuildInfo(setupData setup.Client, targetBuild string) []error

type CoreList

type CoreList []string

func (*CoreList) ReadCoreList

func (receiver *CoreList) ReadCoreList(setupData setup.Client) (errs []error)

type CoreVersionInfo

type CoreVersionInfo struct {
	TargetMcVersion    string
	SyncTime           time.Time
	RequestJavaVersion int
	DownloadUrl        url.URL
	SHA256             string
	Size               int
}

type CoreVersionInfoRepose

type CoreVersionInfoRepose struct {
	Data struct {
		Type   string   `json:"type"`
		Builds []string `json:"builds"`
	} `json:"data"`
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type TargetBuildInfoRepose

type TargetBuildInfoRepose struct {
	Data struct {
		Type  string `json:"type"`
		Build struct {
			SyncTime    time.Time `json:"sync_time"`
			DownloadUrl string    `json:"download_url"`
			CoreType    string    `json:"core_type"`
			McVersion   string    `json:"mc_version"`
			CoreVersion string    `json:"core_version"`
		} `json:"build"`
	} `json:"data"`
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

Jump to

Keyboard shortcuts

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