internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Command      *exec.Cmd
	Stdin        io.WriteCloser
	AutosaveTime time.Duration
	// contains filtered or unexported fields
}

Server type holds all the os/exec objects for the terraria server

func NewServer

func NewServer(command []string, autosaveTime time.Duration, interactive bool) (*Server, error)

NewServer launches a new Terraria server with a given command

func (*Server) GetExitCode

func (server *Server) GetExitCode() int

func (*Server) Shutdown

func (server *Server) Shutdown() error

func (*Server) ShutdownOnExit

func (server *Server) ShutdownOnExit()

func (*Server) Start

func (server *Server) Start() error

Jump to

Keyboard shortcuts

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