Skip to content

Syfaro/minepong

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

minepong

Golang Minecraft server pinger.

Usage

The minepong.Ping method takes care of resolving SRV records, connecting to the server, and retrieving data.

pong, err := Ping(host)
if err != nil {
    fmt.Println(err)
    return
}

A minepong.Pong is returned with information from the ping.

type Pong struct {
    Version struct {
        Name     string
        Protocol int
    } `json:"version"`
    Players struct {
        Max    int `json:"max"`
        Online int `json:"online"`
        Sample []map[string]string
    } `json:"players"`
    Description  interface{} `json:"description"`
    FavIcon      string      `json:"favicon"`
    ResolvedHost string      `json:"resolved_host"`
}

About

Minecraft server pinger/querier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%