Versions in this module Expand all Collapse all v0 v0.5.1 Jan 15, 2023 Changes in this version + const DefaultWorld + const RealmTypeNone + const RealmTypeNormal + const RealmTypePvP + const RealmTypeRP + const RealmTypeRP_PvP + var ErrAlreadyExists = fmt.Errorf("config: already exists") + var Presets map[RealmType]WorldVars + var WorldVarList = map[string]WorldVarType + func DefaultLocation() string + func GenerateTLSKeyPair(at string) error + func ListHomeConfigs(dir string) ([]string, error) + func ListWorldConfigs(dir string) ([]string, error) + func WorldExists(at string) bool + type Home struct + Certificate tls.Certificate + Dir string + func LoadHome(at string) (*Home, error) + func (h *Home) Fingerprint() string + func (h *Home) GenerateKeyPair() error + type HomeFile struct + Admin map[string]string + AlphaRealmlistListen string + AuthListen string + BnetListen string + BnetRESTListen string + DBDriver string + DBURL string + HTTPInternal string + HostExternal string + OpenRegistration bool + type Realm struct + Armory string + FP string + type RealmType uint8 + func (rt *RealmType) DecodeWord(wdata string) error + func (rt RealmType) EncodeWord() (string, error) + type RealmsFile struct + Realms map[uint64]Realm + type World struct + Certificate tls.Certificate + Dir string + func LoadWorld(at string) (*World, error) + func (c *World) Fingerprint() string + func (c *World) GenerateKeyPair() error + func (c *World) String() string + type WorldFile struct + CPUProfile string + DBDriver string + DBURL string + FederalSovereignty bool + HomeServer string + HomeServerFingerprint string + Listen string + PublicAddress string + PublicRedirect string + RealmDescription string + RealmID uint64 + RealmName string + RealmType RealmType + Redirect string + ShowSQL bool + Timezone i18n.Timezone + Version vsn.Build + WardenEnabled bool + WorldVars WorldVars + type WorldVarType int + const Bool + const Float + const Int + const String + const Uint + type WorldVars map[string]string