ping

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 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 Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(address string, info *ServerInfo, logger *slog.Logger) *Handler

func (*Handler) Start

func (h *Handler) Start() error

func (*Handler) Stop

func (h *Handler) Stop()

func (*Handler) UpdateServerInfo

func (h *Handler) UpdateServerInfo(info *ServerInfo)

type ServerInfo

type ServerInfo struct {
	Name           string `json:"name"`
	PlayersCurrent int    `json:"players_current"`
	PlayersMax     int    `json:"players_max"`
	Map            string `json:"map"`
	GameMode       string `json:"game_mode"`
	GameVersion    string `json:"game_version"`
}

Jump to

Keyboard shortcuts

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