ping

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Players

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

type SamplePlayer

type SamplePlayer struct {
	Name string
	Id   uuid.UUID
}

type ServerPing

type ServerPing struct {
	Version     Version         `json:"version"`
	Players     *Players        `json:"players"`
	Description *component.Text `json:"description"`
	Favicon     favicon.Favicon `json:"favicon,omitempty"`
}

ServerPing is a 1.7 and above server list ping response.

func (*ServerPing) MarshalJSON

func (p *ServerPing) MarshalJSON() ([]byte, error)

type Version

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

Jump to

Keyboard shortcuts

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