status

package
v0.0.0-...-ca992e9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SxtannaName = "Sxtanna"
	SxtannaUUID = "41d1fed5-aa44-432c-ab1b-2810001f3270"

	ServerMotd = "                      &bA GoLang Server"
	ServerIcon = "" /* 31758-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Text string `json:"text"`
}

type Players

type Players struct {
	Max    int            `json:"max"`
	Online int            `json:"online"`
	Sample []SamplePlayer `json:"sample"`
}

type Response

type Response struct {
	Version     Version `json:"version,string"`
	Players     Players `json:"players,string"`
	Description Message `json:"description"`
	Favicon     string  `json:"favicon"`
}

func DefaultResponse

func DefaultResponse() Response

type SamplePlayer

type SamplePlayer struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

type Version

type Version struct {
	Name     string `json:"name"`
	Protocol int    `json:"protocol"`
}

Jump to

Keyboard shortcuts

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