minecraft

package
v0.0.0-...-935c173 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mcserver

type Mcserver struct {
	Name string `gorm:"primary_key"`
	IP   string
	Port string
}

type ServerInfo

type ServerInfo struct {
	Status  string `json:"status"`
	Online  bool   `json:"online"`
	Motd    string `json:"motd"`
	Players struct {
		Max    int `json:"max"`
		Now    int `json:"now"`
		Sample []struct {
			Name string `json:"name"`
			ID   string `json:"id"`
		} `json:"sample"`
	} `json:"players"`
	Server struct {
		Name     string `json:"name"`
		Protocol int    `json:"protocol"`
	} `json:"server"`
	LastUpdated string `json:"last_updated"`
	Duration    string `json:"duration"`
}

Jump to

Keyboard shortcuts

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