Documentation
¶
Index ¶
- func Deop(remoteConsole Console, users []string) error
- func ListWhitelist(remoteConsole Console) ([]string, error)
- func NewConn(hostPort, password string) (*rcon.RemoteConsole, error)
- func Op(remoteConsole Console, users []string) error
- func Reload(remoteConsole Console) error
- func SaveAllFlush(remoteConsole Console) error
- func SaveOff(remoteConsole Console) error
- func SaveOn(remoteConsole Console) error
- func Whitelist(remoteConsole Console, action string, users []string) error
- func WhitelistSwitch(remoteConsole Console, enabled bool) error
- type Console
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListWhitelist ¶ added in v0.6.0
ListWhitelist lists whitelisted users.
func NewConn ¶ added in v0.4.0
func NewConn(hostPort, password string) (*rcon.RemoteConsole, error)
NewConn creates a new RCON connection.
func SaveAllFlush ¶ added in v0.7.0
SaveAllFlush saves the server to disk.
func WhitelistSwitch ¶ added in v0.4.0
WhitelistSwitch switches the whitelist on/off.
Types ¶
Click to show internal directories.
Click to hide internal directories.