server_manager

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCantCreateConfigDir = errors.New("cant create accweb config dir")
	ErrServerNotFound      = errors.New("server not found")
	ErrServerAlreadyExists = errors.New("server already exists")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigBaseDir   string
	AccServerPath   string
	AccServerExe    string
	AccServerMd5Sum string
}

func (Config) AccServerFullPath added in v1.20.0

func (c Config) AccServerFullPath() string

type Service

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

func New

func New(baseDir, accServerPath, accServerExe string) *Service

func (*Service) AutoStart

func (s *Service) AutoStart() error

func (*Service) Bootstrap

func (s *Service) Bootstrap() error

func (*Service) Create

func (s *Service) Create(accConfig *instance.AccConfigFiles, accWebSettings instance.AccWebSettingsJson) (*instance.Instance, error)

func (*Service) Delete

func (s *Service) Delete(id string) error

func (*Service) Duplicate

func (s *Service) Duplicate(srcId string) (*instance.Instance, error)

func (*Service) GetAccServerExeMd5Sum

func (s *Service) GetAccServerExeMd5Sum() error

func (*Service) GetServerByID

func (s *Service) GetServerByID(id string) (*instance.Instance, error)

func (*Service) GetServers

func (s *Service) GetServers() map[string]*instance.Instance

func (*Service) LoadAll

func (s *Service) LoadAll() error

LoadAll .

func (*Service) Start added in v1.20.0

func (s *Service) Start(id string) error

func (*Service) StopAll

func (s *Service) StopAll() error

func (*Service) UpdateServersServerExeFile

func (s *Service) UpdateServersServerExeFile() error

Jump to

Keyboard shortcuts

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