files

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Directory = "/bedrock" // Directory where the server files are stored
)

Variables

View Source
var FileNames = FileDetails{
	ServerProperties: "server.properties",
	Worlds:           "worlds",
	DefaultWorld:     "Bedrock level",
}

FileNames are the names of files used by the server.

View Source
var FullPaths = FileDetails{
	ServerProperties: path.Join(Directory, LocalPaths.ServerProperties),
	Worlds:           path.Join(Directory, LocalPaths.Worlds),
	DefaultWorld:     path.Join(Directory, LocalPaths.DefaultWorld),
}

FullPaths are the full paths to server files, from the root directory.

View Source
var LocalPaths = FileDetails{
	ServerProperties: FileNames.ServerProperties,
	Worlds:           FileNames.Worlds,
	DefaultWorld:     path.Join(FileNames.Worlds, FileNames.DefaultWorld),
}

LocalPaths are the paths to server files from the server directory (server.Directory).

Functions

This section is empty.

Types

type FileDetails added in v0.1.2

type FileDetails struct {
	ServerProperties string
	Worlds           string
	DefaultWorld     string
}

Jump to

Keyboard shortcuts

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