Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Address string `json:"address"` IP string `json:"ip"` Port int `json:"port"` Hostname string `json:"hostname"` HostnamePlain string `json:"hostname_plain"` HostnameHTML string `json:"hostname_html"` Passworded bool `json:"passworded"` GameName string `json:"gamename"` GameVer string `json:"gamever"` GameType string `json:"gametype"` GameTypeSlug string `json:"gametype_slug"` MapName string `json:"mapname"` // Northside Vending, etc MapNameSlug string `json:"mapname_slug"` PlayerNum int `json:"player_num"` PlayerMax int `json:"player_max"` RoundNum int `json:"round_num"` RoundMax int `json:"round_max"` TimeLeft int `json:"time_round"` TimeSpecial int `json:"time_special"` SwatScore int `json:"score_swat"` SuspectsScore int `json:"score_sus"` SwatWon int `json:"vict_swat"` SuspectsWon int `json:"vict_sus"` BombsDefused int `json:"bombs_defused"` BombsTotal int `json:"bombs_total"` TocReports string `json:"coop_reports"` // 24/28 WeaponsSecured string `json:"coop_weapons"` // 17/19 }
func NewServerFromDomain ¶ added in v0.7.0
type ServerDetail ¶
type ServerDetail struct { Info Server `json:"info"` Players []ServerPlayer `json:"players"` Objectives []ServerObjective `json:"objectives"` }
func NewServerDetailFromDomain ¶ added in v0.7.0
func NewServerDetailFromDomain(svr server.Server) ServerDetail
type ServerObjective ¶
type ServerObjective struct { Name string `json:"name"` // obj_Investigate_Laundromat, etc Status string `json:"status"` // In Progress, etc StatusSlug string `json:"status_slug"` }
func NewServerObjectiveFromDomain ¶ added in v0.7.0
func NewServerObjectiveFromDomain(obj details.Objective) ServerObjective
type ServerPlayer ¶
type ServerPlayer struct { Name string `json:"name"` Ping int `json:"ping"` Score int `json:"score"` Team string `json:"team"` // swat or suspects VIP bool `json:"vip"` CoopStatus string `json:"coop_status"` // Healthy, etc CoopStatusSlug string `json:"coop_status_slug"` Kills int `json:"kills"` TeamKills int `json:"teamkills"` Deaths int `json:"deaths"` Arrests int `json:"arrests"` Arrested int `json:"arrested"` VIPEscapes int `json:"vip_escapes"` VIPArrests int `json:"vip_captures"` VIPRescues int `json:"vip_rescues"` VIPKillsValid int `json:"vip_kills_valid"` VIPKillsInvalid int `json:"vip_kills_invalid"` BombsDefused int `json:"rd_bombs_defused"` BombsDetonated uint8 `json:"rd_crybaby"` // yes or no CaseEscapes int `json:"sg_escapes"` CaseKills int `json:"sg_kills"` CaseSecured uint8 `json:"sg_crybaby"` // yes or no }
func NewServerPlayerFromDomain ¶ added in v0.7.0
func NewServerPlayerFromDomain(player details.Player) ServerPlayer
Click to show internal directories.
Click to hide internal directories.