wrapper

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper struct {
	Status  string
	Console *console.Console
	// contains filtered or unexported fields
}

Wrapper represents the wrapper object of the minecraft server

func NewWrapper

func NewWrapper(srv server.Server) *Wrapper

NewWrapper creates a new wrapper

func (*Wrapper) Start

func (w *Wrapper) Start(ctx context.Context, wg *sync.WaitGroup)

Start starts the wrapper and the minecraft server.

func (*Wrapper) Stop

func (w *Wrapper) Stop(wg *sync.WaitGroup)

Stop stops the wrapper by first trying to gravefully shutdown the minecraft server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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