Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + const DBPackName + const DefaultHomeTemplate + const DefaultWorldTemplate + const MapPackName + func FormatHomeConfig(hcf HomeConfigFormatted) []byte + func FormatWorldConfig(wcf WorldConfigFormatted) []byte + func MakeDefaultHomeConfig(conf *config.Home) []byte + func MakeDefaultWorldConfig(conf *config.World) []byte + type Configurator struct + Dir string + func NewConfigurator(d string) *Configurator + func (c *Configurator) ListHomeConfigs() ([]string, error) + func (c *Configurator) ListWorldConfigs() ([]string, error) + func (co *Configurator) NewHomeConfigurator() *HomeConfigurator + func (co *Configurator) NewWorldConfigurator() *WorldConfigurator + type ExDb struct + Name string + Type reflect.Type + type Extractor struct + Dir string + Source content.Volume + func (ex *Extractor) AuthorPack(name string, cfg datapack.PackConfig) (*datapack.Pack, error) + func (ex *Extractor) ExtractDatabases() error + func (ex *Extractor) ExtractMaps() error + type HomeConfigFormatted struct + DBDriver string + DBURL string + OpenRegistration string + type HomeConfigurator struct + Config *config.Home + Configurator *Configurator + func (hc *HomeConfigurator) CreateDB() error + func (hc *HomeConfigurator) GenerateConfig() error + func (hc *HomeConfigurator) RegisterAccount(username, password string, tier rpcnet.Tier) error + func (hc *HomeConfigurator) SetDirName(dirName string) + type LocalHomeConfig struct + HomeConfigName string + func (l *LocalHomeConfig) Auth(username, password string) error + func (l *LocalHomeConfig) Begin(wc *WorldConfigurator, name string) error + func (l *LocalHomeConfig) Check() (*ValidationCheck, error) + func (l *LocalHomeConfig) Confirm(check *ValidationCheck) error + func (l *LocalHomeConfig) Enlist() error + func (l *LocalHomeConfig) MustAuth() bool + type Registrar interface + Auth func(username, password string) error + Begin func(wc *WorldConfigurator, location string) error + Check func() (*ValidationCheck, error) + Confirm func(check *ValidationCheck) error + Enlist func() error + MustAuth func() bool + type RegistrarParams struct + DBDriver string + DBURL string + type RemoteHomeserverRegistrar struct + Address string + Client rpcnet.HomeServiceClient + Token string + ValidFingerprint string + WorldConfigurator *WorldConfigurator + func (rhr *RemoteHomeserverRegistrar) Auth(username, password string) error + func (rhr *RemoteHomeserverRegistrar) Begin(wc *WorldConfigurator, address string) error + func (rhr *RemoteHomeserverRegistrar) Check() (*ValidationCheck, error) + func (rhr *RemoteHomeserverRegistrar) Confirm(check *ValidationCheck) error + func (rhr *RemoteHomeserverRegistrar) Enlist() error + func (rhr *RemoteHomeserverRegistrar) MustAuth() bool + type ValidationCheck struct + Object string + Question string + type WorldConfigFormatted struct + DBDriver string + DBURL string + HomeServer string + HomeServerFingerprint string + RealmID string + RealmName string + Version string + type WorldConfigurator struct + Config *config.World + ConfigName string + Configurator *Configurator + GamePath string + Registrar Registrar + func (w *WorldConfigurator) ConfigExists() bool + func (w *WorldConfigurator) GenerateConfigDir() error + func (w *WorldConfigurator) LoadConfig(confName string) (err error) + func (w *WorldConfigurator) NewExtractor() (*Extractor, error) + func (w *WorldConfigurator) RegistrarAuth(username, password string) error + func (w *WorldConfigurator) RegistrarCheck() (*ValidationCheck, error) + func (w *WorldConfigurator) RegistrarConfirm(vc *ValidationCheck) error + func (w *WorldConfigurator) RegistrarEnlist() error + func (w *WorldConfigurator) RegistrarMustAuth() bool + func (w *WorldConfigurator) RemoveConfigDir() error + func (w *WorldConfigurator) SetConfigName(confName string) + func (wc *WorldConfigurator) CreateDB() error + func (wc *WorldConfigurator) RegistrarBegin(location string) error + func (wc *WorldConfigurator) SetName(name string) + func (wc *WorldConfigurator) SetRealmType(t config.RealmType) error + func (wc *WorldConfigurator) SetRegistrar(reg Registrar) error + func (wc *WorldConfigurator) SetVolume(path string) error + type WorldOptions struct + RealmName string