minecraft

package
v0.0.0-...-265ede9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pong

type Pong struct {
	Version struct {
		Name     string `json:"name"`
		Protocol int    `json:"protocol"`
	} `json:"version"`
	Players struct {
		Max    int `json:"max"`
		Online int `json:"online"`
		Sample []struct {
			Name string `json:"name"`
			ID   string `json:"id"`
		} `json:"sample"`
	} `json:"players"`
	Description struct {
		Text      string `json:"text"`
		Translate string `json:"translate"`
		Des       string `json:"-"`
	} `json:"description,omitempty"`
	FavIcon string `json:"favicon"`
	ModInfo struct {
		ModType string `json:"type"`
		ModList []struct {
			ModID      string `json:"modid"`
			ModVersion string `json:"version"`
		} `json:"modList"`
	} `json:"modinfo"`
}

func Ping

func Ping(host string) (*Pong, error)

Jump to

Keyboard shortcuts

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