application

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppMode_MainServerOnly ApplicationMode = iota
	AppMode_SubServersOnly
	AppMode_AllServers

	DATABASE_NAME string = "mhserver"
)
View Source
const (
	CONFIG_DIR  string = "/usr/share/mhserver/"
	CONFIG_FILE string = CONFIG_DIR + "mhserver.conf"
)

Variables

View Source
var (
	ErrConfigurationNotFound error = errors.New("configuration file not found! Please run `setup.sh` and setup your server")
	ErrEnvironmentNotFound   error = errors.New("env not found! Please run `setup.sh`")
)

Functions

func NewApplicationConfig

func NewApplicationConfig() appconfig.ApplicationConfig

Types

type Application

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

func NewApplication

func NewApplication() *Application

func (*Application) InitDB

func (app *Application) InitDB() (err error)

func (*Application) Run

func (app *Application) Run(mode ApplicationMode) error

type ApplicationMode

type ApplicationMode int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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