Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IconAbsentErr = errors.New("icon not present")
View Source
var IconFormatErr = errors.New("data format error")
Functions ¶
This section is empty.
Types ¶
type Icon ¶
type Icon string
Icon should be a PNG image that is Base64 encoded (without newlines: \n, new lines no longer work since 1.13) and prepended with data:image/png;base64,.
type Status ¶
type Status struct { Description chat.Message Players struct { Max int Online int Sample []struct { ID uuid.UUID Name string } } Version struct { Name string Protocol int } Favicon Icon }
func PingAndList ¶
PingAndList check server status and list online player. Returns server status and delay. The addr has the form "host:port". The port are required.
Click to show internal directories.
Click to hide internal directories.