tool

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup added in v0.6.0

func Backup() (string, error)

func BanPlayer

func BanPlayer(steamID string) error

func Broadcast

func Broadcast(message string) error

func CheckAndKickPlayers added in v0.5.5

func CheckAndKickPlayers(db *bbolt.DB, players []database.PlayerRcon) error

func CustomCommand added in v0.5.6

func CustomCommand(command string) (string, error)

func Decode added in v0.6.0

func Decode(file string) error

func DoExit

func DoExit() error

func GetBackupDir added in v0.6.0

func GetBackupDir() (string, error)

func GetLatestTag added in v0.6.0

func GetLatestTag() (string, error)

func GetLatestTagFromGitee added in v0.6.0

func GetLatestTagFromGitee() (string, error)

func Info

func Info() (map[string]string, error)

func KickPlayer

func KickPlayer(steamID string) error

func ShowPlayers

func ShowPlayers() ([]database.PlayerRcon, error)

func Shutdown

func Shutdown(seconds string, message string) error

Types

type Sturcture

type Sturcture struct {
	Players []database.Player `json:"players"`
	Guilds  []database.Guild  `json:"guilds"`
}

type Tag added in v0.6.0

type Tag struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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