launcher

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaunchConfig

type LaunchConfig struct {
	MachineType string
	Server      LaunchServerConfig
	World       LaunchWorldConfig
}

func (*LaunchConfig) ToRunnerConfig

func (c *LaunchConfig) ToRunnerConfig(cfg *config.Config) (*runner.Config, error)

func (*LaunchConfig) Validate

func (c *LaunchConfig) Validate() error

type LaunchServerConfig

type LaunchServerConfig struct {
	PreferDetected     bool
	Version            string
	DownloadUrl        string
	ManifestOverride   string
	CustomCommand      []string
	ServerPropOverride map[string]string
	JavaVersion        int
	InactiveTimeout    int
	// TODO: Move this to world config
	Motd      string
	Operators []string
	Whitelist []string
}

type LaunchWorldConfig

type LaunchWorldConfig struct {
	ShouldGenerate bool
	Name           string
	GenerationID   string
	Seed           string
	LevelType      string
	Difficulty     string
}

type LauncherService

type LauncherService struct {
	// contains filtered or unexported fields
}

func NewLauncherService

func NewLauncherService(config *config.Config, kvs kvs.KeyValueStore, server server.GameServer, streaming *streaming.StreamingService) *LauncherService

func (*LauncherService) Clean

func (h *LauncherService) Clean(ctx context.Context, authKey string)

func (*LauncherService) Launch

func (s *LauncherService) Launch(ctx context.Context, config *LaunchConfig) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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