model

package
v0.0.0-...-25dc0e1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlacklistPlayers

type BlacklistPlayers struct {
	ID       uuid.UUID     `json:"id" form:"-"`
	Name     string        `json:"name" form:"-"`
	Score    int           `json:"score" form:"-"`
	Duration time.Duration `json:"duration" form:"-"`
}

type Players

type Players struct {
	Name     string        `json:"name" form:"-"`
	Score    int           `json:"score" form:"-"`
	Duration time.Duration `json:"duration" form:"-"`
}

type PlayersInfo

type PlayersInfo struct {
	Players []*Players
}

func ToPlayerInfo

func ToPlayerInfo(playersInfoResponse *steam.PlayersInfoResponse) *PlayersInfo

type Server

type Server struct {
	ID          uuid.UUID    `json:"id" form:"-"`
	Name        string       `json:"name" form:"-"`
	Addr        string       `json:"addr" form:"-"`
	Status      bool         `json:"status" form:"-"`
	ServerInfo  *ServerInfo  `json:"serverinfo" form:"-"`
	PlayersInfo *PlayersInfo `json:"playersinfo" form:"-"`
}

type ServerInfo

type ServerInfo struct {
	Protocol     int               `json:"protocol" form:"-"`
	Name         string            `json:"name" form:"-"`
	Map          string            `json:"map" form:"-"`
	Folder       string            `json:"folder" form:"-"`
	Game         string            `json:"game" form:"-"`
	ID           int               `json:"id" form:"-"`
	Players      int               `json:"players" form:"-"`
	MaxPlayers   int               `json:"maxplayers" form:"-"`
	Bots         int               `json:"bots" form:"-"`
	ServerType   steam.ServerType  `json:"servertype" form:"-"`
	Environment  steam.Environment `json:"environment" form:"-"`
	Visibility   steam.Visibility  `json:"visibility" form:"-"`
	VAC          steam.VAC         `json:"vac" form:"-"`
	Version      string            `json:"version" form:"-"`
	Port         int               `json:"port" form:"-"`
	SteamID      int64             `json:"steamid" form:"-"`
	SourceTVPort int               `json:"sourcetvport" form:"-"`
	SourceTVName string            `json:"sourcetvname" form:"-"`
	Keywords     string            `json:"keywords" form:"-"`
	GameID       int64             `json:"gameid" form:"-"`
}

func ToServerInfo

func ToServerInfo(infoResponse *steam.InfoResponse) *ServerInfo

Jump to

Keyboard shortcuts

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