handlers

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterServersWithQtv

func FilterServersWithQtv(servers []mvdsv.Mvdsv) []mvdsv.Mvdsv

func Servers

func Servers(serverSource func() []mvdsv.Mvdsv) func(c *fiber.Ctx) error

Types

type GameState

type GameState struct {
	Hostname  string
	IpAddress string
	Port      int
	Link      string
	Players   []Player
}

func GameStateFromServer

func GameStateFromServer(server mvdsv.Mvdsv) GameState

func ToGameStates

func ToGameStates(servers []mvdsv.Mvdsv) []GameState

type Player

type Player struct {
	Name string
}

type ServerStats

type ServerStats struct {
	ServerCount       int
	ActiveServerCount int
	PlayerCount       int
	ObserverCount     int
}

func ToStats

func ToStats(servers []mvdsv.Mvdsv) ServerStats

Jump to

Keyboard shortcuts

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