Skip to content

A Golang package for querying game servers

License

Notifications You must be signed in to change notification settings

skynodehost/gamequery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gamequery

A Golang package for querying game servers

Supported protocols:

Source Query
Minecraft TCP & UDP

Sample code:

package main

import (
	"fmt"
	"github.com/wisp-gg/gamequery"
	"github.com/wisp-gg/gamequery/api"
)

func main() {
	res, protocol, err := gamequery.Detect(api.Request{
		IP: "127.0.0.1",
		Port: 27015,
	})
	if err != nil {
		fmt.Printf("failed to query: %s", err)
		return
	}

	fmt.Printf("Detected the protocol: %s\n", protocol)
	fmt.Printf("%+v\n", res)
}

About

A Golang package for querying game servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%