client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PalworldClient

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

func NewPalworldClient

func NewPalworldClient(config *config.Config) *PalworldClient

func (*PalworldClient) GetMetrics

func (c *PalworldClient) GetMetrics() (*PalworldMetricsResponse, error)

type PalworldMetricsResponse

type PalworldMetricsResponse struct {
	ServerFps        int     `json:"serverfps"`
	CurrentPlayerNum int     `json:"currentplayernum"`
	ServerFrameTime  float64 `json:"serverframetime"`
	MaxPlayerNum     int     `json:"maxplayernum"`
	Uptime           int     `json:"uptime"`
}

Jump to

Keyboard shortcuts

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