service

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecord = errors.New("record not found")

Functions

func AddBackup added in v0.6.0

func AddBackup(db *bbolt.DB, backup database.Backup) error

func AddRconCommand added in v0.5.6

func AddRconCommand(db *bbolt.DB, rcon database.RconCommand) error

func AddWhitelist added in v0.5.5

func AddWhitelist(db *bbolt.DB, player database.PlayerW) error

func DeleteBackup added in v0.6.0

func DeleteBackup(db *bbolt.DB, backupId string) error

func GetBackup added in v0.6.0

func GetBackup(db *bbolt.DB, backupId string) (database.Backup, error)

func GetGuild

func GetGuild(db *bbolt.DB, playerUID string) (database.Guild, error)

func GetPlayer

func GetPlayer(db *bbolt.DB, playerUid string) (database.Player, error)

func GetRconCommand added in v0.5.6

func GetRconCommand(db *bbolt.DB, uuid string) (database.RconCommand, error)

func ListBackups added in v0.6.0

func ListBackups(db *bbolt.DB, startTime, endTime time.Time) ([]database.Backup, error)

func ListGuilds

func ListGuilds(db *bbolt.DB) ([]database.Guild, error)

func ListPlayers

func ListPlayers(db *bbolt.DB) ([]database.TersePlayer, error)

func ListRconCommands added in v0.5.6

func ListRconCommands(db *bbolt.DB) ([]database.RconCommandList, error)

func ListWhitelist added in v0.5.5

func ListWhitelist(db *bbolt.DB) ([]database.PlayerW, error)

func PutGuilds

func PutGuilds(db *bbolt.DB, guilds []database.Guild) error

func PutPlayers

func PutPlayers(db *bbolt.DB, players []database.Player) error

func PutPlayersRcon

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

func PutRconCommand added in v0.5.6

func PutRconCommand(db *bbolt.DB, uuid string, rcon database.RconCommand) error

func PutWhitelist added in v0.5.5

func PutWhitelist(db *bbolt.DB, players []database.PlayerW) error

func RemoveRconCommand added in v0.5.6

func RemoveRconCommand(db *bbolt.DB, uuid string) error

func RemoveWhitelist added in v0.5.5

func RemoveWhitelist(db *bbolt.DB, player database.PlayerW) error

RemoveWhitelist removes a player from the whitelist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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