server

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: 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 interface {
	// Configure configures the server.
	Configure() error
	// Update updates the server, if supported uses cache.
	Update() error
	// UpdatePlugins updates the plugins, if supported.
	UpdatePlugins() error
	// StartupCommand returns the command and arguments used to startup the server.
	StartupCommand() (string, []string)
}

Server is the interface for servers.

func NewServer

func NewServer() (Server, error)

NewServer creates a new server for the serverType provided in the env variable SERVER_TYPE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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