Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Player

type Player struct {
	Username string
	UserID   int
	SteamID  string
	State    string
	Ping     int
	Loss     int
	IP       string
	ConnPort int
}

Player contains player information like username, steamID, etc.

type PlayerCount

type PlayerCount struct {
	Current int
	Max     int
	Humans  int
	Bots    int
}

PlayerCount contains current and max players of server

type Status

type Status struct {
	Hostname    string
	Version     string
	Map         string
	PlayerCount PlayerCount
	Players     map[int]Player
}

Status Contains the server status

Jump to

Keyboard shortcuts

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