qserver

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGameServer

func IsGameServer(server GenericServer) bool

func IsProxyServer

func IsProxyServer(server GenericServer) bool

func IsQtvServer

func IsQtvServer(server GenericServer) bool

Types

type Client

type Client struct {
	Name    string
	NameRaw []rune
	Team    string
	TeamRaw []rune
	Skin    string
	Colors  [2]uint8
	Frags   int
	Ping    int
	Time    uint8
	IsBot   bool
}

type GenericServer

type GenericServer struct {
	Address    string
	Clients    []Client
	NumClients uint8
	Settings   map[string]string
	ExtraInfo  extraInfo
}

func NewGenericServer

func NewGenericServer() GenericServer

type QtvStream

type QtvStream struct {
	Title      string
	Url        string
	Clients    []Client
	NumClients uint8
}

func NewQtvStream

func NewQtvStream() QtvStream

func (*QtvStream) MarshalJSON

func (node *QtvStream) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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