response

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicQuery

type BasicQuery struct {
	MOTD          formatting.Result `json:"motd"`
	GameType      string            `json:"game_type"`
	Map           string            `json:"map"`
	OnlinePlayers uint64            `json:"online_players"`
	MaxPlayers    uint64            `json:"max_players"`
	HostPort      uint16            `json:"host_port"`
	HostIP        string            `json:"host_ip"`
}

type BedrockStatus

type BedrockStatus struct {
	ServerGUID      int64              `json:"server_guid"`
	Edition         *string            `json:"edition"`
	MOTD            *formatting.Result `json:"motd"`
	ProtocolVersion *int64             `json:"protocol_version"`
	Version         *string            `json:"version"`
	OnlinePlayers   *int64             `json:"online_players"`
	MaxPlayers      *int64             `json:"max_players"`
	ServerID        *string            `json:"server_id"`
	Gamemode        *string            `json:"gamemode"`
	GamemodeID      *int64             `json:"gamemode_id"`
	PortIPv4        *uint16            `json:"port_ipv4"`
	PortIPv6        *uint16            `json:"port_ipv6"`
	SRVResult       *SRVRecord         `json:"srv_result"`
}

type FullQuery

type FullQuery struct {
	Data    map[string]string `json:"data"`
	Players []string          `json:"players"`
}

type JavaStatus

type JavaStatus struct {
	Version   Version           `json:"version"`
	Players   Players           `json:"players"`
	MOTD      formatting.Result `json:"motd"`
	Favicon   *string           `json:"favicon"`
	SRVResult *SRVRecord        `json:"srv_result"`
	ModInfo   *ModInfo          `json:"mod_info"`
	Latency   time.Duration     `json:"-"`
}

type JavaStatusLegacy

type JavaStatusLegacy struct {
	Version   *Version          `json:"version"`
	Players   LegacyPlayers     `json:"players"`
	MOTD      formatting.Result `json:"motd"`
	SRVResult *SRVRecord        `json:"srv_result"`
}

type LegacyPlayers

type LegacyPlayers struct {
	Online int64 `json:"online"`
	Max    int64 `json:"max"`
}

type Mod

type Mod struct {
	ID      string `json:"id"`
	Version string `json:"version"`
}

type ModInfo

type ModInfo struct {
	Type string `json:"type"`
	Mods []Mod  `json:"mods"`
}

type Players

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

type SRVRecord

type SRVRecord struct {
	Host string `json:"host"`
	Port uint16 `json:"port"`
}

type SamplePlayer

type SamplePlayer struct {
	ID        string `json:"id"`
	NameRaw   string `json:"name_raw"`
	NameClean string `json:"name_clean"`
	NameHTML  string `json:"name_html"`
}

type Version

type Version struct {
	NameRaw   string `json:"name_raw"`
	NameClean string `json:"name_clean"`
	NameHTML  string `json:"name_html"`
	Protocol  int64  `json:"protocol"`
}

Jump to

Keyboard shortcuts

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