Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Players ¶
type Players struct { Online int `json:"online"` Max int `json:"max"` Sample []SamplePlayer `json:"sample,omitempty"` }
type SamplePlayer ¶
type ServerPing ¶
type ServerPing struct { Version Version `json:"version,omitempty" yaml:"version,omitempty"` Players *Players `json:"players,omitempty" yaml:"players,omitempty"` Description *component.Text `json:"description" yaml:"description"` Favicon favicon.Favicon `json:"favicon,omitempty" yaml:"favicon,omitempty"` ModInfo *modinfo.ModInfo `json:"modinfo,omitempty" yaml:"modinfo,omitempty"` }
ServerPing is a 1.7 and above server list ping response.
func (*ServerPing) MarshalJSON ¶
func (p *ServerPing) MarshalJSON() ([]byte, error)
func (*ServerPing) MarshalYAML ¶ added in v0.31.0
func (p *ServerPing) MarshalYAML() (interface{}, error)
func (*ServerPing) UnmarshalJSON ¶ added in v0.20.2
func (p *ServerPing) UnmarshalJSON(data []byte) error
func (*ServerPing) UnmarshalYAML ¶ added in v0.31.0
func (p *ServerPing) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.