Documentation ¶
Index ¶
- func GetLastServerVersion() (string, bool, error)
- func LaunchInteractiveRcon()
- func LaunchServer(config *runner.Config, srv *ServerInstance) error
- func MonitorServer(config *runner.Config, srv *ServerInstance, stdout io.ReadCloser) error
- func RemoveLastServerVersion() error
- func SaveLastServerVersion(config *runner.Config) error
- func SendStartedEvent(config *runner.Config, srv *ServerInstance)
- type Rcon
- type ServerInstance
- func (srv *ServerInstance) AddToOp(players []string)
- func (srv *ServerInstance) AddToWhiteList(players []string)
- func (srv *ServerInstance) GetSeed() (string, error)
- func (srv *ServerInstance) QuickUndo() error
- func (srv *ServerInstance) SaveAll() error
- func (srv *ServerInstance) SendChat(message string) error
- func (srv *ServerInstance) Stop()
- func (srv *ServerInstance) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLastServerVersion ¶
func LaunchInteractiveRcon ¶
func LaunchInteractiveRcon()
func LaunchServer ¶
func LaunchServer(config *runner.Config, srv *ServerInstance) error
func MonitorServer ¶
func MonitorServer(config *runner.Config, srv *ServerInstance, stdout io.ReadCloser) error
func RemoveLastServerVersion ¶
func RemoveLastServerVersion() error
func SaveLastServerVersion ¶
func SendStartedEvent ¶
func SendStartedEvent(config *runner.Config, srv *ServerInstance)
Types ¶
type ServerInstance ¶
type ServerInstance struct { Name string FinishWG sync.WaitGroup ShouldStop bool StartupFailed bool IsServerInitialized bool IsGameFinished bool RestartRequested bool Crashed bool ServerPid int Rcon *Rcon // contains filtered or unexported fields }
func New ¶
func New() *ServerInstance
func (*ServerInstance) AddToOp ¶
func (srv *ServerInstance) AddToOp(players []string)
func (*ServerInstance) AddToWhiteList ¶
func (srv *ServerInstance) AddToWhiteList(players []string)
func (*ServerInstance) GetSeed ¶
func (srv *ServerInstance) GetSeed() (string, error)
func (*ServerInstance) QuickUndo ¶
func (srv *ServerInstance) QuickUndo() error
func (*ServerInstance) SaveAll ¶
func (srv *ServerInstance) SaveAll() error
func (*ServerInstance) SendChat ¶
func (srv *ServerInstance) SendChat(message string) error
func (*ServerInstance) Stop ¶
func (srv *ServerInstance) Stop()
func (*ServerInstance) Wait ¶
func (srv *ServerInstance) Wait()
Click to show internal directories.
Click to hide internal directories.