server

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FabricJarName    = "fabric-server-launch.jar"
	VanillaJarName   = "server.jar"
	GitDirectoryName = ".git"
)

Variables

This section is empty.

Functions

func CreateServer

func CreateServer(s *Server) error

func MakeServersMenuItem

func MakeServersMenuItem(servers []Server) []tui.Option

Types

type Server

type Server struct {
	Name           string
	BaseDir        string
	Version        *manifest.VersionInfo
	Type           ServerType
	HasGit         bool
	HasStartScript bool
	Start          func() error
}

func FindServers

func FindServers() ([]Server, error)

type ServerType

type ServerType uint8
const (
	Vanilla ServerType = iota
	Fabric
)

Jump to

Keyboard shortcuts

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