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 ¶
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
Click to show internal directories.
Click to hide internal directories.