model

package
v0.0.0-...-e57dd20 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Browserless *Browserless `yaml:"browserless"`
	PlayerList  *PlayerList  `yaml:"player-list"`
}

type Browserless

type Browserless struct {
	Url     string        `yaml:"url,omitempty"`
	Timeout time.Duration `yaml:"timeout,omitempty"`
}

type ClientInfo

type ClientInfo struct {
	SHA1 string
	Size int64
	Url  string
}

type Config

type Config struct {
	Log       *Log       `yaml:"log"`
	Minecraft *Minecraft `yaml:"minecraft"`
	Api       *Api       `yaml:"api"`
}

type Entry

type Entry struct {
	Name string `yaml:"name,omitempty"`
	Hash string `yaml:"hash,omitempty"`
}

type Log

type Log struct {
	ForceNew bool          `yaml:"force-new,omitempty"`
	Level    string        `yaml:"level,omitempty"`
	Aging    time.Duration `yaml:"aging,omitempty"`
	Colorful bool          `yaml:"colorful,omitempty"`
}

type Minecraft

type Minecraft struct {
	Version      *Version  `yaml:"version"`
	Resource     *Resource `yaml:"resource"`
	BlessingSkin []string  `yaml:"blessing-skin,omitempty"`
}

type PlayerList

type PlayerList struct {
	SingleColumnLimit int      `yaml:"single-column-limit,omitempty"`
	HeaderText        []string `yaml:"header-text,omitempty"`
	FooterText        []string `yaml:"footer-text,omitempty"`
}

type PlayerListRequest

type PlayerListRequest struct {
	Entry   []*PlayerListRequestEntry
	Options *PlayerListRequestOptions
	// contains filtered or unexported fields
}

type PlayerListRequestEntry

type PlayerListRequestEntry struct {
	PlayerName string `binding:"required" json:"player-name"`
	PlayerUUID string `binding:"required" json:"player-uuid"`
	Ping       int    `binding:"required" json:"ping"`
}

type PlayerListRequestOptions

type PlayerListRequestOptions struct {
	// TODO 支持关闭头像
	ShowAvatar bool `json:"show-avatar,omitempty"`
}

type Release

type Release struct {
	// 版本号
	ID string
	// package 信息
	PackageInfoURL string
	// client.jar 信息
	ClientInfo *ClientInfo
}

type Resource

type Resource struct {
	Language string `yaml:"language,omitempty"`
	Font     string `yaml:"font,omitempty"`
}

type Version

type Version struct {
	EntryList []*Entry `yaml:"entry-list"`
	AutoLoad  bool     `yaml:"auto-load,omitempty"`
}

Jump to

Keyboard shortcuts

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