qserver

package
v0.1.6 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

This section is empty.

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 {
	Version    Version `json:"-"`
	Address    string
	Clients    []Client
	NumClients uint8
	Settings   map[string]string
	ExtraInfo  extraInfo `json:"-"`
}

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)

type ServerType added in v0.1.6

type ServerType string
const (
	TypeFte     ServerType = "fte"
	TypeMvdsv   ServerType = "mvdsv"
	TypeProxy   ServerType = "qwfwd"
	TypeQtv     ServerType = "qtv"
	TypeUnknown ServerType = "unknown"
)

type Version added in v0.1.6

type Version string

func (Version) GetType added in v0.1.6

func (sv Version) GetType() ServerType

func (Version) IsFte added in v0.1.6

func (sv Version) IsFte() bool

func (Version) IsGameServer added in v0.1.6

func (sv Version) IsGameServer() bool

func (Version) IsMvdsv added in v0.1.6

func (sv Version) IsMvdsv() bool

func (Version) IsProxy added in v0.1.6

func (sv Version) IsProxy() bool

func (Version) IsQtv added in v0.1.6

func (sv Version) IsQtv() bool

func (Version) IsType added in v0.1.6

func (sv Version) IsType(serverType ServerType) bool

Jump to

Keyboard shortcuts

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