Documentation
¶
Overview ¶
Package gameserver provides monitoring functionality for game servers
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMonitorRunning = errors.New("monitor is already running")
View Source
var ErrNotFound = errors.New("game server not found")
Functions ¶
This section is empty.
Types ¶
type Create ¶
type GameServer ¶
type GameServer struct {
Code string
Host string
Port int
QueryHost string
QueryPort int
Kind Kind
Password string
DisplaysIP bool
DisplaysPort bool
Ignore bool
OverrideDefaults bool
Defaults Defaults
State State
Metadata Metadata
}
func (GameServer) GetDisplayAddress ¶
func (gs GameServer) GetDisplayAddress() string
func (GameServer) GetQueryAddress ¶
func (gs GameServer) GetQueryAddress() string
func (GameServer) GetQueryHost ¶
func (gs GameServer) GetQueryHost() string
func (GameServer) GetQueryPort ¶
func (gs GameServer) GetQueryPort() int
func (*GameServer) UpdateState ¶
func (gs *GameServer) UpdateState(next State) bool
type MinecraftJavaServer ¶
type MinecraftJavaServer struct {
// contains filtered or unexported fields
}
func (*MinecraftJavaServer) Latest ¶
func (s *MinecraftJavaServer) Latest() GameServer
func (*MinecraftJavaServer) Refresh ¶
func (s *MinecraftJavaServer) Refresh(ctx context.Context) (GameServer, bool)
type SteamA2SServer ¶
type SteamA2SServer struct {
// contains filtered or unexported fields
}
func (*SteamA2SServer) Latest ¶
func (s *SteamA2SServer) Latest() GameServer
func (*SteamA2SServer) Refresh ¶
func (s *SteamA2SServer) Refresh(ctx context.Context) (GameServer, bool)
type Target ¶
type Target interface {
Latest() GameServer
Refresh(ctx context.Context) (server GameServer, changed bool)
}
func TargetsFromServers ¶
func TargetsFromServers(servers []GameServer) []Target
Click to show internal directories.
Click to hide internal directories.